I have a table named users
and incase this table is ever renamed, i use the define() function:
define("USERS_TABLE", "users");
Now here is my sql query:
mysql_query("INSERT INTO " . USERS_TABLE . " (username, date) VALUES ('$username', '$date')");
This does not work. If i change " . USERS_TABLE . "
to:
users
it works fine. Weird thing is i do this with other queries for different tables and it works fine. ANy ideas?