Re: My function returns true but my code does not execute
- From: "Ian B" <ianbambury@xxxxxxxxx>
- Date: 31 Oct 2005 05:46:12 -0800
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
.
- References:
- My function returns true but my code does not execute
- From: John Moore
- Re: My function returns true but my code does not execute
- From: Ewoud Dronkert
- Re: My function returns true but my code does not execute
- From: John Moore
- My function returns true but my code does not execute
- Prev by Date: Re: PCRE sub-expressions matching
- Next by Date: Re: help with document print
- Previous by thread: Re: My function returns true but my code does not execute
- Next by thread: Re: My function returns true but my code does not execute
- Index(es):
Relevant Pages
|