Jump to content

[SOLVED] quick mysql help


sandrob57

Recommended Posts

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 :P

Link to comment
https://forums.phpfreaks.com/topic/42786-solved-quick-mysql-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.