Hello, Could someone help me figure out what's wrong witht this query? It's late so it could be easy, but I don't think that's it..
$result = mysql_query("SELECT id FROM members WHERE name=".$m.");
if (!$result) {
die('Invalid query: ' . mysql_error());
}
The error thrown is:
Invalid query: Unknown column 'Andrew' in 'where clause'
Btw the $m variable is Andrew, but I don't know what it's saying unknown column, because Andrew IS in the name colum in the table Members
Also, FYI this has a mysql connection attached to it that works elsewhere so it is connecting to the DB..
Thanks,
Andrew