title: how to use mysql update query and mysql insert query together?
body: <p>this the condition: there is a form in html and php haivng around 120 fields its for a website i am making this form on submitting goes to a php page where i first retrive all the values using $_REQUEST[]and then using insert query insert all of them in their specific coloums in the same table in my mysql database. Now i will have to do all the process again for updating these values. Becuase syntax for insert query and update query are quite different .</p>
  
  <p>I dont want to write another 100 lines of code . Is there any way to use the code i wrote inside my insert query to use to update the data.?</p>