Jump to content

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resourc


i4VisualMedia

Recommended Posts

Hi guys,
Im quite new to working with PHP and mySQL and am still learning the ropes.
I am getting the following error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/i4visua/public_html/cmsadmin/editmembers.php on line 84

from this code:
82    $query = "SELECT * FROM 'members'";
83    $result = mysql_query($query);
84    $num_results = mysql_num_rows($result);
85   
86    for ($i=0; $i <$num_results; $i++)
87    {
88    $row = mysql_fetch_array($result);
89    echo '<br /> ';
90    echo stripslashed($row['company']);
91    } 

can anybody help?

cheers
Pete

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.