xwishmasterx Posted April 28, 2011 Share Posted April 28, 2011 Below is part of my existing code: UPDATE vtp_members SET hits=(hits + $random_number) Can I update same field again like so?: UPDATE vtp_members SET hits=(hits + $random_number), hits=(hits + 100) Any problems with this or will it work and add both the random_number and +100 to the filed? Quote Link to comment https://forums.phpfreaks.com/topic/234965-update-set-in-same-field-twice-possible/ Share on other sites More sharing options...
trq Posted April 28, 2011 Share Posted April 28, 2011 UPDATE vtp_members SET hits=(hits + $random_number)+100 Quote Link to comment https://forums.phpfreaks.com/topic/234965-update-set-in-same-field-twice-possible/#findComment-1207495 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.