MySQL Forums :: Newbie :: syntax error

Advanced Search

syntax error
Posted by: Isak Fyksen ()
Date: January 12, 2013 12:56PM

hi, i get syntax error, could somone please help me :)



if (!empty($cIP)) {
$usrIP = $cIP;
} else if (!empty($xIP)) {
$usrIP = $xIP;
} else {
$usrIP = $rIP;

$TIME = time();

function add_ipSQL ($table, $ip) {
global $TIME;
@mysql_query("INSERT INTO $table VALUES (NULL, $ip, $TIME)");

add_ipSQL('ipLog', $usrIP);


'mysql_error()' prints:

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 '::1, 1358016343)' at line 1


ty in advance :)

Options: ReplyQuote

Subject Written By Posted
syntax error Isak Fyksen 01/12/2013 12:56PM
Re: syntax error Isak Fyksen 01/12/2013 01:27PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.