PHP Insert and update from the same form ?

Associate
Joined
18 Oct 2005
Posts
158
Location
Kendal
Hi Guys,

I have a table that is updated by a form on a daily basis. I would also like this data to be inserted as a new row in another table at the same time. Any ideas on how I should go about doing this ?

Cheers

Shorty
 
If you already have the form's action set up to run a MySQL UPDATE statement, then you simply need to add an additional MySQL statement beneath that to INSERT the data in the other table. Or am I misunderstanding?
 
f you already have the form's action set up to run a MySQL UPDATE statement, then you simply need to add an additional MySQL statement beneath that to INSERT the data in the other table. Or am I misunderstanding?

Nope was me misunderstanding, I am still finding my feet with PHP and MYSQL :-)

I have done as you said and all is working Thanks !!
 
Last edited:
Back
Top Bottom