- Code: Select all
1064: 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 '(players.dateupdatedutc,'%m/%d/%y %H:%i:%s') <= DATE_SUB(NOW(),
SQL:
SELECT members.name FROM `roster_members` members LEFT JOIN `roster_players` players ON members.name = players.name WHERE members.level >= 10 AND ( ISNULL(players.name) OR STR_TO_DATE(players.dateupdatedutc,'%m/%d/%y %H:%i:%s') <= DATE_SUB(NOW(), INTERVAL 24 HOUR) ) ORDER BY members.last_online DESC
File: index.php
Line: 32
is the error im getting as well, roster 1.7.3 running smoothly - let me know of any config settings you want or anything else i can do to track it down
the site passes the roster diag test, i can link you a phpinfo if that would help as well.
edit:
i just read through the topic again and noticed this post that i missed the first time.
olgren wrote:Vexitor wrote:olgren wrote:Vexitor wrote:I am getting a SQL error, any ideas?
- Code: Select all
1064: 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 '(players.dateupdatedutc,'%m/%d/%y %H:%i:%s')<= DATE_SUB(NOW(),
SQL:
SELECT members.name FROM `roster_members` members LEFT JOIN `roster_players` players ON members.name = players.name WHERE members.level >= 1 AND ( ISNULL(players.name) OR STR_TO_DATE(players.dateupdatedutc,'%m/%d/%y %H:%i:%s') <= DATE_SUB(NOW(), INTERVAL 24 HOUR) ) ORDER BY members.last_online DESC
File: index.php
Line: 32
Do you know what version of MySQL you are running on?
I am running the following versions...
MySQL Version 4.0.25
PHP Version 4.3.2
Server Software Apache/2.0.46
Ahhh.. the STR_TO_DATE function wasn't available till MySQL 4.1. There is another option here and that is to do the conversion in php code.
it turns out i have 4.0.23 (i think) installed, i'm on the phone with my host now, if they don't have a newer version is there anything else i can do?