RE: [PHP] mysql query

From: Date: Mon, 04 Dec 2000 13:57:54 +0000
Subject: RE: [PHP] mysql query
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28573@lists.php.net to get a copy of this message
Further up in your code, did you check to make sure the connection was successful to the database? I suspect that's where your problem is. -----Original Message----- From: manohar sadhasivam [mailto:manam100@yahoo.com] Sent: Tuesday, 5 December 2000 12:54 AM To: php-general@lists.php.net Subject: [PHP] mysql query Hi, What is the problem with this query? $query4="select * from two where order_id=1 and foritem=1"; if(!mysql_query($query4,$link))print 'Query4 Failed<br>'; It works fine when i query the mysql directly, but says, 'query4 failed' when i call it thro PHP. all the other queries work fine except this. I have no idea, please write if u have any diea of what is wrong. Thanks, manohar __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#28573) next »