amites Posted February 4, 2008 Share Posted February 4, 2008 Anyone know why $query = "UPDATE bil_msg_sent SET active='1', SET payment='CM' WHERE id='".$id_num."'"; and $query = "UPDATE bil_msg_sent SET active='1' WHERE id='".$id_num."'"; would work, yet combining them to $query = "UPDATE bil_msg_sent SET payment='CM' WHERE id='".$id_num."'"; doesn't?? Link to comment https://forums.phpfreaks.com/topic/89404-solved-combining-mysql-update-queries/ Share on other sites More sharing options...
revraz Posted February 4, 2008 Share Posted February 4, 2008 If you gave us the error it would be easier to see why. And I think you have your order mixed up, the top one is the combined one. Link to comment https://forums.phpfreaks.com/topic/89404-solved-combining-mysql-update-queries/#findComment-457831 Share on other sites More sharing options...
phorcon3 Posted February 4, 2008 Share Posted February 4, 2008 <?php $query = "UPDATE bil_msg_sent SET active='1', payment='CM' WHERE id='".$id_num."'"; ?> Link to comment https://forums.phpfreaks.com/topic/89404-solved-combining-mysql-update-queries/#findComment-457832 Share on other sites More sharing options...
amites Posted February 4, 2008 Author Share Posted February 4, 2008 seems to happen after I've beens staring at code to long, it all starts to blur a little... many thanks Link to comment https://forums.phpfreaks.com/topic/89404-solved-combining-mysql-update-queries/#findComment-458060 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.