Jump to content

[SOLVED] Erro with mysql_fetch_array?


cmaclennan

Recommended Posts

Hi Guys, I have a form that displays a list of database entries and I am getting the following error:Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\show_rma.php on line 23

 

 

here is the code:

// Count the number of records
$query = "SELECT COUNT(*) FROM rma ORDER BY date ASC";
$result = mysql_query ($query);
$row = mysql_fetch_array ($result, MYSQL_NUM);
$num_records = $row[0];

 

 

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/158292-solved-erro-with-mysql_fetch_array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.