why I cann't use mysql_fetch_array() in php 4 ? this problem have error :
Warning: Supplied argument is not a valid MySQL result resource in /var/www/html/php/disp.php on line 13
please help. thank you very much.
Make sure you are supplying the correct arg to it.
$qry="SELECT * FROM some_db"; $resultResource=mysql_query($qry); while($row=mysql_fetch_array($resultResource)) { print $row[1]; print $row[2]; print $row["three"] }
<a href="http://www.php.net/manual/en/function.mysql-fetch-array.php">Check the manual</a>
Nick
if (!$result = mysql_query()) { echo mysql_error(); }