Do you have to escape the sql string to use a variable, like so:
$sql = "SELECT * FROM ".$LOGIN_TABLE." bhah blah";
or can i do this?:
$sql = "SELECT * FROM $LOGIN_TABLE blah blah";
the error i am now getting is:
You have an error in your SQL syntax near '() ' at line 1
which is this:
$sql = "UPDATE ".$LOGIN_TABLE." SET logged_in = 0 AND expiry_time = 0 LIMIT 1";
Rinjani; double quotes? You mean after expiry time, well if you did, you can see that it wasn't that 🙂.
Thank you everyone for your replies btw, much appreciated 🙂
Shuriken1.