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



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

.



Relevant Pages

  • Re: Are we bacteria?
    ... Instead of just sitting there complaining, ... Ian O. ... There is one Scots topic staring us right in the face. ...
    (soc.culture.scottish)
  • Re: Broadcasting Press Guild Awards 2008
    ... I see no complaining or whining in your post, Ian. ...
    (uk.media.tv.misc)
  • Re: Ian Levine was right all along.
    ... who was talking about the BBC's long-term commitment to ... Who before Ian ever started complaining. ... The BBC, in the news report as posted on bbc.co.uk. ...
    (rec.arts.drwho)
  • Re: Ian Levine was right all along.
    ... Who before Ian ever started complaining. ... simple common sense -- the BBC doesn't commission an extra 10 ... The BBC, in the news report as posted on bbc.co.uk. ...
    (rec.arts.drwho)
  • Re: "Mancunians fly by train"
    ... >> Some people here aren't happy unless they're complaining. ... Ian and Andy would give over complaining about ... I'd love to help, but I'm not just a Whingeing Pom, I'm a Brummie as ...
    (uk.railway)