Hello,
I am first time doing a website in PHP & Mysql.
I have to setup a website in php using mysql as backend. One of the feature that my client requires is making entries and modifications locally and then when he says 'Upload Database' it should be uploaded to his website.
A duplicate of his website would be set up locally.
For implementing this feature I have planned out the following steps -
1. Once the client finishes updating his database locally then Select all the tables from the database.
2. For each table select all the rows for which modified is set to True ( I will be having a logical field called Modified in every table which would be set to .T. if the record is modified)
3. Update the selected rows to the respective tables to the database on the online webserver.
I want to know whether I am on the right track or not.
Mysql doesn't support commit/rollback transactions.
Does PHP has this feature ?
How will I ensure that when my database is getting uploaded, either the process gets completed successfully or fails totally. No in between situation.
Any suggestions or guidelines are welcome.
Ani
I am first time doing a website in PHP & Mysql.
I have to setup a website in php using mysql as backend. One of the feature that my client requires is making entries and modifications locally and then when he says 'Upload Database' it should be uploaded to his website.
A duplicate of his website would be set up locally.
For implementing this feature I have planned out the following steps -
1. Once the client finishes updating his database locally then Select all the tables from the database.
2. For each table select all the rows for which modified is set to True ( I will be having a logical field called Modified in every table which would be set to .T. if the record is modified)
3. Update the selected rows to the respective tables to the database on the online webserver.
I want to know whether I am on the right track or not.
Mysql doesn't support commit/rollback transactions.
Does PHP has this feature ?
How will I ensure that when my database is getting uploaded, either the process gets completed successfully or fails totally. No in between situation.
Any suggestions or guidelines are welcome.
Ani