www.webdeveloper.com
Results 1 to 5 of 5

Thread: [RESOLVED] mysql_num_rows() small problem

Threaded View

  1. #1
    Join Date
    May 2012
    Posts
    7

    resolved [RESOLVED] mysql_num_rows() small problem

    Hi guys i have this pretty straight peice of code, that checks if it brought back any rows so i can change what dropdown options become available.

    PHP Code:

    $queryvoid 
    $this->db->query("SELECT * FROM 'test' WHERE test_id = '1' GROUP BY width ORDER BY width");
    $num_rows mysql_num_rows($queryvoid);

    if (
    $num_rows ){ echo "Results exist<br>"; } 
    but this returns an error

    PHP Code:
    mysql_num_rows(): supplied argument is not a valid MySQL result resource 
    is there something im missing with this?

    Regards
    David
    Last edited by david.mitchell; 05-09-2012 at 05:40 AM.

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