samona Posted August 13, 2009 Share Posted August 13, 2009 Hi, If i want to update one field in a record would that work or do i have to update all the fields. For example, if I have a table Customers ======== First Name Last Name Address Record ID If I want to just update the address, do I need to insert the First Name and Last Name again or can I just write a query that updates address for that particular Record ID. Quote Link to comment https://forums.phpfreaks.com/topic/170118-solved-updating-records/ Share on other sites More sharing options...
DEVILofDARKNESS Posted August 13, 2009 Share Posted August 13, 2009 $query = "UPDATE Customers SET Address = '$newaddress' WHERE Record ID='$recordid'"; Quote Link to comment https://forums.phpfreaks.com/topic/170118-solved-updating-records/#findComment-897392 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.