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. 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'"; Link to comment https://forums.phpfreaks.com/topic/170118-solved-updating-records/#findComment-897392 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.