magnetic_water
New member
Bei folgendem PHP-Code...
...wird dieser Fehler verursacht:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in * on line 29
Line 29:
Was mache ich falsch?
PHP:
mysql_connect("*",
"*","*") or die
("Keine Verbindung moeglich");
mysql_select_db("*") or die
("Die Datenbank existiert nicht");
$sql="SELECT topic_id, topic_title, topic_replies, topic_first_poster_name, topic_first_poster_colour, topic_first_post_id
FROM `phpbb_topics`
WHERE `forum_id` = 10
ORDER BY `ID` ASC";
$ergebnis = mysql_query($sql);
while($row = mysql_fetch_assoc($ergebnis))
{
print '<a href="*/forum/viewtopic.php?f=10&t=';
echo $row["topic_id"]; print '">';
echo $row["topic_title"]; print ' -<span style="color:#'; echo $row["topic_first_poster_colour"];
print ';">'; echo $row["topic_first_poster_name"]; print '</span>';
print ' (';echo $row["topic_replies"]; print ' Antworten)';
}
...wird dieser Fehler verursacht:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in * on line 29
Line 29:
PHP:
while($row = mysql_fetch_assoc($ergebnis))
Was mache ich falsch?
Zuletzt bearbeitet: