dadamssg Posted August 7, 2009 Share Posted August 7, 2009 how do i write this query to work??? $no = "UPDATE Topics SET (last_time, last_user) VALUES ('{$today}','{$username}')"; Quote Link to comment https://forums.phpfreaks.com/topic/169180-solved-update-query-help-easy/ Share on other sites More sharing options...
smerny Posted August 7, 2009 Share Posted August 7, 2009 there should probably be a "WHERE" but what is it doing? updating everything? or what?... also from what i can tell you're not even running a query? show more code if its there Quote Link to comment https://forums.phpfreaks.com/topic/169180-solved-update-query-help-easy/#findComment-892659 Share on other sites More sharing options...
dadamssg Posted August 7, 2009 Author Share Posted August 7, 2009 hey sorry, i figured it out. thanks though $no = "UPDATE Topics SET last_time= '$today', last_user = '$username' WHERE topic_id = '$postid'"; Quote Link to comment https://forums.phpfreaks.com/topic/169180-solved-update-query-help-easy/#findComment-892661 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.