Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home2/fabiann/public_html/ninja/index.php on line 165
Here is my php on the page(I just took the php for there was far too much html to shift through. line 165 is the 7th line in the php) :
<?php
//call DB connection
require('../../ninjadbconnect.php');
$result = @mysql_query("SELECT * FROM ninja_events ORDER BY id DESC LIMIT 5");
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
$id = $row['id'];
$when = $row['date'];
$where = $row['where'];
$what = $row['what'];
echo "<tr><td class=\"eventinfo\">$id</td><td class=\"eventinfo\">$date</td><td class=\"eventinfo\">$where</td><td class=\"eventinfo\">$what</td></tr>";
}
?>
Anyone got a clue of whats going on?
Edited by FabianN, 15 November 2005 - 12:52 AM.
