- Joined
- Sep 10, 2002
- Messages
- 5,834
- Reaction score
- 75
I have this code ...
// connect to database
$sqlQuery = "SELECT * FROM table WHERE fieldname1= -123456 ORDER BY id DESC LIMIT 1";
[successfully executed my programming routine here.]
At the end of php script, I added this command to update the fieldname 'type' value to test4
$sqlQuery = "UPDATE `table` SET `type`='test4' WHERE fieldname1=-123456 ORDER BY id DESC LIMIT 1";
The UPDATE is not working. I suppose to see updated data for type=test4. What I'm missing here?
Thank you in advance.
EM
// connect to database
$sqlQuery = "SELECT * FROM table WHERE fieldname1= -123456 ORDER BY id DESC LIMIT 1";
[successfully executed my programming routine here.]
At the end of php script, I added this command to update the fieldname 'type' value to test4
$sqlQuery = "UPDATE `table` SET `type`='test4' WHERE fieldname1=-123456 ORDER BY id DESC LIMIT 1";
The UPDATE is not working. I suppose to see updated data for type=test4. What I'm missing here?
Thank you in advance.
EM