Hello everyone, I hope this hasn't been discussed before (I've looked but
haven't found any answers).
This seems very, very strange, and maybe it's just me but here goes:
$var="1234"; (type does not seem to matter)
this query returns no error, but no result either:
mysql("database","SELECT * FROM table WHERE id='$var'");
but this works:
mysql("database","SELECT * FROM table WHERE id='1234'");
Uh? I've tried setting the type of the variable to string, to no avail.
I've also tried things like "WHERE id LIKE '%$var%'"...
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]