Sorry it's been a while since I've done some MySQL queries, so this is probably a really simple answer. Can someone please check this code and see why this isn't doing anything to the database
$Reference = "031";
$Message = "Test Message";
mysql_connect("localhost", "secretlol", "secretlol") or die(mysql_error());
mysql_select_db("db630112365") or die(mysql_error());
mysql_query("UPDATE quotes SET Body='$Message' WHERE Reference='$Reference';") or die(mysql_error());
Any ideas, would be greatly appreciated :)
I was thrown the following error:
Unknown column '031' in 'where clause'
Yet, the value does exist.
Not sure if this helps:
Schema:
Values: