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"]; } 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)) { 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
Archived
This topic is now archived and is closed to further replies.