Re: My function returns true but my code does not execute
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: My function returns true but my code does not execute

From: Ian B <ianbambury@gmail.com>
Date: Mon Oct 31 2005 - 14:46:12 CET

Try something along the lines of

$result = mysql_query($sql) or die("<br />Could not run query $sql
Reason: " . mysql_error());

to find out what it's complaining about.

($result = mysql_query($query)) will always return true even if the
query fails.

Ian
Received on Mon Nov 21 02:53:32 2005