pugboy Posted July 10, 2008 Share Posted July 10, 2008 I am wondering, in MySQL, can I actually modify a value of a row in PHP? I can't seems to find how I would do that. Insert just makes a new row, doesn't it? Quote Link to comment https://forums.phpfreaks.com/topic/114008-solved-db-question/ Share on other sites More sharing options...
trq Posted July 10, 2008 Share Posted July 10, 2008 You would use an UPDATE statement. eg; UPDATE tbl SET fld = 'newvalue' WHERE id = 2; Quote Link to comment https://forums.phpfreaks.com/topic/114008-solved-db-question/#findComment-585940 Share on other sites More sharing options...
pugboy Posted July 10, 2008 Author Share Posted July 10, 2008 Ok, thanks Quote Link to comment https://forums.phpfreaks.com/topic/114008-solved-db-question/#findComment-585948 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.