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? 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 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
Archived
This topic is now archived and is closed to further replies.