Help!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I get this error: Warning: mysql_fetch_row(): supplied argument is not a 
valid MySQL result resource in /home/helljump/public_html/php/index.php on line 39

and I am connecting to the database!

Here is line 39:

<?php

$query=mysql_query("SELECT 
boardid,boardname,boardcaption,topics,messages,views FROM boards ORDER BY id ASC");
while($row=mysql_fetch_row($query)) echo '<tr ',shading(),'><td><a 
href="http://subzer0.net/php/topics.php?board='.$row[0].'">'.$row[1].'</a></td><td>
'.$row[2].'</td><td>'.$row[3].'</td><td>'.$row[4].'</td></tr>';

echo '<tr class="cell1"><td align="center" colspan="10"><b>User Options</b><
/td></tr><tr ',shading(),'><td>Use your <a href="/php/board_manager.php">board 
manager</a> to add or remove boards from the index.</td></tr><tr ',shading(),'>
<td><a href="/php/meta_mod.php">Meta-Moderate</a> to give feedback to the 
staff of '.$config['sitename'].'</td></tr>';

?>



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux