Jump to content

updating already existing forms...


mkosmosports

Recommended Posts

Hey,

 

Im thinking of the most effective way I could do an update of already exisiting mysql data through forms. So far, Im thinking my choices are:

 

1. Simply update all mysql fields regardless of if theyve changed or not.

2. Run some kind of a match (maybe preg_match) between the new form entry and the existing mysql entry. (Im not too familiar with this one)

3. Hoping someone from this forum can give me a push into the right direction... :P

 

Thanks!

 

mkosmosports

Link to comment
https://forums.phpfreaks.com/topic/46120-updating-already-existing-forms/
Share on other sites

Hmm...good question. By 'effective' I mean most logical, fastest. (maybe 'efficient' is the better word here) Not necessarily trying to make sure its easy code and it does seem like updating all fields regardless of changes is doing unnecessary work. Id also like to improve my php knowledge, so Id rather write the appropriate script regardless of its difficulty.

 

Unless you think updating all fields in this case would be the preferred option after weighing out the overall pros and cons...

 

Thanks

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.