roguegenius
Programmer
I keep getting a SQL error on the page and the statement that is shown as having the issue is correct as far as I can tell.
I am running MySQL 5.1.11
I have even tried backing up my database with compatibility mode selected and importing it back in. Nothing.
Code:
$sql_query = sprintf('INSERT into %s SET test_id="%s", user_name="%s", score=%u, date=now(), time=%u, result_ip="%s"',
TABLE_RESULTS,
SQL::esc($this->filename),
$name,
$this->res['correct_answers'],
$this->res['time_elapsed'],
$_SERVER['REMOTE_ADDR']
I am running MySQL 5.1.11
I have even tried backing up my database with compatibility mode selected and importing it back in. Nothing.