i am writing a php code involving mysql. At one point, i have to update a table in my database for which i am using the below 2 statements. But these are not working.
$temp = $row['tracking_id'];
mysql_query("UPDATE order_products SET state=4.00 WHERE tracking_id = '$temp'");
Note that i don't get an error message. The table is not updated though. Also note, the column names, table names are correct. I have also tried without the single '' quotes around $temp in WHERE clause.
The connection to database is fine. I know this cos select queries are working fine.
Any ideas?
Thanks
echo "UPDATE order_products SET state=4.00 WHERE tracking_id = '$temp'"and paste the answer in mysql command line client. Should give you details of what you are missing