Quote:
Originally Posted by BradM
Negative. Can't be that because I can echo the var just fine when pulling it into my function. It's something mysql related.
|
Well, as you know, the sql syntax is ok (although I didn't know you could use '&&' - I've always used 'AND'), so all I can say, it has to be something weird with the var.
If this isn't an if loop, then just echo the sql query, and run it in mysql at the command line (or phpmyadmin) and see if the output matches your scripts...