sandrob57 Posted March 15, 2007 Share Posted March 15, 2007 Something seems to be wrong here: $date_check = time() - 2629743; $result = dbquery("SELECT * FROM fusion_war_history WHERE a_id='".$userdata['user_id']." AND date>'".$date_check."' ORDER BY war_id DESC'"); The error I get is: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1171293351' ORDER BY war_id DESC'' at line 3 I have no idea what is wrong in the syntax here. I feel kinda stupid, I can usually get this SQL stuff Link to comment https://forums.phpfreaks.com/topic/42786-solved-quick-mysql-help/ Share on other sites More sharing options...
Barand Posted March 15, 2007 Share Posted March 15, 2007 You seem to be missing a ' at the end of the 3rd line Link to comment https://forums.phpfreaks.com/topic/42786-solved-quick-mysql-help/#findComment-207678 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.