Hi all.
I need to change the data in 2 feilds with my data table. I am able to change the first one but not the second one.
I have 2 feilds: "processed" datatype INT and "batch_id" datatype DATE,
If I use
$updateSQL = sprintf("UPDATE payments SET processed='1' where processed = '0'");
This works fine, but when I introduce a second feild it fails.
$updateSQL = sprintf("UPDATE payments SET processed='1' where processed = '0', batch_id = '('DATE: Auto NOW()', NOW())'");
Can anyone see where I am going wrong.