www.webdeveloper.com
Results 1 to 2 of 2

Thread: mysql_num_rows(): supplied argument is not a valid MySQL result resource

  1. #1
    Join Date
    Jul 2010
    Location
    United Kingdom
    Posts
    6

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

    I HAVE SOLD THE PROBLEM.

    I seem to be getting an error:

    mysql_num_rows(): supplied argument is not a valid MySQL result resource on line on line 10, in my index.php. This is my code:

    PHP Code:
    include('connect.php');
    $query mysql_query('SELECT * FROM contacts');
    $getrow mysql_num_rows($query);

    $id $getrow['id'];
    $contactname $getrow['contactname'];
    $link $getrow['link'];

    echo 
    "$contactname $link<br />"
    Please help me.
    Last edited by Jackr; 11-05-2010 at 04:30 PM.

  2. #2
    Join Date
    Jul 2010
    Location
    United Kingdom
    Posts
    6
    I have solved the problem.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles