php - Update single or multiple row with data from another row in the different table -
The administrator will need to accept the profile information, then it will be displayed. This is my idea that we have to store the data in a dummy table and it will need to be reviewed and approved by the administrator, because the data in the master user table is updated.
So I need to update the master table by using the dummy table row, how to use this simple update query line?
Is there any easier way?
I am using PHP MySQL
You inserted it into the table (If both tables are the same):
Choose to insert in the mastertable * from the dummyTable a suggestion from me:
You can add a Boolean column to MasterCables such as IsAprproved . And set it to false by default. Ever since its selection, use it:
SELECT * FROM MasterTable WHERE IsApproved = 'true' That's why users will not receive records that are not approved. When the administrator accepts each record, update that record and set IsApproved to true . Ie, upstate mastertable SET IsApproved = 'true' where id = its ID / iod , then user user will be able to obtain that record.
Comments
Post a Comment