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}')"; 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 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'"; 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
Archived
This topic is now archived and is closed to further replies.