ballhogjoni Posted June 23, 2007 Share Posted June 23, 2007 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/realfina/public_html/findacreditsolution/popular_cards/index.php on line 9 $query = mysql_query("SELECT * FROM popular_cards") or die(mysql_error()); $rows = mysql_num_rows($query); while ($row = mysql_fetch_array($rows)) { // problem line echo "ID: ".$row["ID"]." & the code is: ".$row["code"]; } Quote Link to comment https://forums.phpfreaks.com/topic/56859-solved-what-is-wrong-with-this-mysql-code/ Share on other sites More sharing options...
chigley Posted June 23, 2007 Share Posted June 23, 2007 while ($row = mysql_fetch_array($query)) { Quote Link to comment https://forums.phpfreaks.com/topic/56859-solved-what-is-wrong-with-this-mysql-code/#findComment-280924 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.