Warning: mysql_fetch_array
HejHvad gør jeg galt her:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /customers/kappels.net/kappels.net/httpd.www/eif/news/show.php on line 33
Linie 33:
while ($rows = mysql_fetch_array($query)) {
og de omkringliggende er disse:
<?php
$query = mysql_query("SELECT name, text, mail FROM comment WHERE newsid='$_GET[id]' ORDER BY id DESC");
while ($rows = mysql_fetch_array($query)) {
echo "<tr>";
echo "<td width='100%'>";
echo "<hr size='1' color='#000000' noshade>";
echo "<p><b>".nl2br($rows['text'])."</b><b><br>";
echo "</b>af <a href='mailto:$row[mail]'>$rows[name]</a></td>";
echo "</tr>";
}
?>
Adressen er: http://eif.kappels.net/news/show.php?id=2
/kappel
