I have the following code in my program:
$query = “UPDATE current SET currLocation = $currentLocation, comment = $content WHERE userID = $id LIMIT 1”;
mysql_query($query) or die(‘Error, query failed’);
The above fails every time. This code works:
$query = “UPDATE current SET currLocation = $currentLocation WHERE userID = $id LIMIT 1”;
mysql_query($query) or die(‘Error, query failed’);
I suspect I have an issue with types. currLocation is type text; $currentLocation is type string. Any ideas on how I can resolve this??
Or maybe I am going blind and have a syntax error.
thanks in Advance!