I’m tearing my hair out trying to figure out why this wont work. I get a variable (the name of a table) via the querystring and I want to delete the name from a user table. For example, without the querystring variables it would look like:
mysql_query("DELETE FROM cykrider WHERE testname=‘mytest’ ");
However, when I put mytest as a
variable (testnam), I get an error:
mysql_query("DELETE FROM $usersname WHERE testname=’$testnam’ ");
I’ve tried changing it to:
WHERE testname = ‘$testnam’ ");
but that didn’t seem to work either. Any ideas? Thanks.