Computers |
|
| | #1 (permalink) |
| Junior Techie Join Date: Mar 2004
Posts: 56
| mysql_fetch_array(): supplied argument is not a valid MySQL result resource I keep getting the above error when entering the below code. $result = mysql_query("SELECT , Message FROM LatestNews"); while ($row = mysql_fetch_array($result)) { print "Message:".$row{'Message'}." "; } can anyone help? |
| | |
| | #2 (permalink) |
| True Techie Join Date: Apr 2004
Posts: 168
| Remove the comma from the line: $result = mysql_query("SELECT , Message FROM LatestNews"); so it reads: $result = mysql_query("SELECT Message FROM LatestNews");
__________________ -------------------- Nak Is it just me, or does something smell suspicious about all this? |
| | |