MySQL Forums
Forum List  »  PHP

Re: mysql_num_rows(): supplied argument is not a valid MySQL result
Posted by: Rick James
Date: May 16, 2012 08:51AM

What happens when you run this from the commandline msyql?
SELECT  s.name AS song_name, s.url AS song_url,
        s.submit_name, s.submit_time, a.name AS artist_name,
        a.url AS artist_url
    FROM  song AS s, artist AS a
    WHERE  s.artist_id = a.id
    ORDER BY  s.id DESC
    LIMIT  20

Where is the error check after the mysql_query() call?

For that matter, where is the connect call?

Options: ReplyQuote


Subject
Written By
Posted
Re: mysql_num_rows(): supplied argument is not a valid MySQL result
May 16, 2012 08:51AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.