scooterlibby Posted March 14, 2007 Share Posted March 14, 2007 I have found that the tutorial I was using and basing my UPDATE statement does not work and the answers I have gotto so far, I am sorry to say, I do not understand. I have a number of PHP books available to me but they skirt over the update issue So please anyone could you point me to a tutorial where I can select a simple record from a file display the fields and update the file with any modifications. I have mastered the select and display just the UPDATE has me confluxed. :'( Regards Scooter Link to comment https://forums.phpfreaks.com/topic/42773-how-does-the-update-statement-work/ Share on other sites More sharing options...
per1os Posted March 14, 2007 Share Posted March 14, 2007 http://www.tizag.com/mysqlTutorial/mysqlupdate.php What is there to know about the update statement To updated 2 columns for specific records UPDATE table_name SET column_name = 'value', column_name2 = 'value2' WHERE column_name3 = 'value3'; Or to update 1 col for specific records: UPDATE table_name SET column_name = 'value' WHERE column_name3 = 'value3'; Or to update every record in the table UPDATE table_name SET column_name = 'value'; That is that, nothing more. Link to comment https://forums.phpfreaks.com/topic/42773-how-does-the-update-statement-work/#findComment-207598 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.