MySQL Forums
Forum List  »  PHP

Re: Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource
Posted by: Peter Brawley
Date: May 10, 2008 10:31PM

Have a look at the PHP manual page for mysql_connect(). You need to save its return result, and you need to check whether mysql_connect() raised an error, for example

$conn = mysql_connect( ... ) or die( msql_error() );

PB
http://www.artfulsoftware.com

Options: ReplyQuote


Subject
Written By
Posted
Re: Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource
May 10, 2008 10:31PM


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.