Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/content/r/a/e/raeyshe/html/fanlisting/admin.php on line 36

<?
   // select all unapproved members
   $result = mysql_query ("SELECT * FROM $table WHERE apr!='y'");
   [B]if ($row = mysql_fetch_array($result)) {
[/B]   do { 
   // display all unapproved members 
   ?>

Line 36 is in bold, red font

I uninstalled it then tried reinstalling. It somehow fixed the problem.

unistalled what???????

i deleted the whole fanlisting directory since it still wasn't in use anyway then i installed it again and the problem went away

Can you help me my script have an error as this Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\public_html\admin\reslib.php on line 80

and my script is this
$row = mysql_fetch_array($result);

can you help me to solve the problem thanks

This question has already been answered. Start a new discussion instead.