Jump to content

[SOLVED] mutiple table updates


adzie

Recommended Posts

Hello,

 

I have this script which updates a field based on a time difference but i'd also like to update another table at the same time/

 

this is the current status

                     if (($status == "7") && ($tdiff > 70))
                           {
                          $query_status = "UPDATE member SET active = 4 WHERE member_num='$num'";
                           $result_status = mysql_query($query_status);
                           }

 

i'd also like to update this

 

 

INSERT INTO member_records (member_num, type, previous, new, user) VALUES ('$num','3','1','4','SYSTEM')";

 

 

Any pointers or tips for the best results? cheers

Link to comment
https://forums.phpfreaks.com/topic/115718-solved-mutiple-table-updates/
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.