Hello, This is a reply to an e-mail that you wrote on Tue, 29 Jul 2003 at 18:57, lines prefixed by '>' were originally written by you. > Off hand, I would agree. And that is what I would expect. > However, the *exact* same setup on a different server gives me a > result of > 'FALSE' properly. The other server has php 4.3.3 on it - the one > giving the > improper response has php 4.1.2. > Could this be the issue? > -Mike
mysql_query() returns FALSE if the query fails and a resource ID if it suceeds in both of those versions. The best way to see if it failed or not is... $queryid = mysql_query($sql); if($queryid !== FALSE){ // this will be evaluated if mysql_wuery did not return FALSE // and it is type-sensitive so (int)0 does not count as FALSE. } -- phpmachine :: The quick and easy to use service providing you with professionally developed PHP scripts :: http://www.phpmachine.com/ Professional Web Development by David Nicholson http://www.djnicholson.com/ QuizSender.com - How well do your friends actually know you? http://www.quizsender.com/ (developed entirely in PHP) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php