also mal sehn: PHP-Code: <?php $host = "Geheim"; $pass = ""; $user = "root"; $db = "datenbank"; $link = mysql_connect($host, $user, $pass) or die("Keine Verbindung möglich: " . mysql_error()); mysql_select_db($db) or die("Auswahl der Datenbank fehlgeschlagen"); $query = "SELECT * FROM phpbb_topics"; $result = mysql_query($query) or die("Anfrage fehlgeschlagen: " . mysql_error()); $abfrage = "SELECT topic_replies FROM phpbb_topics Where topic_id=1"; $ergebnis = mysql_query($abfrage); $replies = mysql_result($ergebnis); echo $replies; ?> Bei PHP-Code: $abfrage = "SELECT topic_replies FROM phpbb_topics Where topic_id=1"; einfach die ID nach "topic_id=" angeben, die du haben willst... (ohne Gewähr - ich kann auch nich alles) EDIT: bin halt zu langsam...
<?php $host = "Geheim"; $pass = ""; $user = "root"; $db = "datenbank"; $link = mysql_connect($host, $user, $pass) or die("Keine Verbindung möglich: " . mysql_error()); mysql_select_db($db) or die("Auswahl der Datenbank fehlgeschlagen"); $query = "SELECT * FROM phpbb_topics"; $result = mysql_query($query) or die("Anfrage fehlgeschlagen: " . mysql_error()); $abfrage = "SELECT topic_replies FROM phpbb_topics Where topic_id=1"; $ergebnis = mysql_query($abfrage); $replies = mysql_result($ergebnis); echo $replies; ?>
$abfrage = "SELECT topic_replies FROM phpbb_topics Where topic_id=1";
--http://www.justsayhi.com/bb/html_quiz
Foren-Regeln