Jump to content

update issue :(


onedumbcoder

Recommended Posts

I have this update query that is not working right and im not sure why

 

"UPDATE p, pp SET p.status='1' WHERE p.pp_id='$id' AND DATE_ADD(pp.due_date, INTERVAL 48 HOUR) < NOW()";

 

 

 

ending_date is in two days but this still changes the status of p to 1 when it shouldnt.

 

it should only change the status of p to 1 after 48 hours past the due date

Link to comment
https://forums.phpfreaks.com/topic/161559-update-issue/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.