RE: [PHP-DB] What's wrong with this query?

From: Date: Thu, 26 Feb 2004 20:00:39 +0000
Subject: RE: [PHP-DB] What's wrong with this query?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-33160@lists.php.net to get a copy of this message
What about the single quotes? Might try this. $sql = "INSERT INTO log SET term=\'$search\', returns=\'$arrayword\', time=CURTIME(), date=CURDATE(), ip=\'$ip\'"; > $sql = "INSERT INTO log SET term='$search', returns='$arrayword', > time=CURTIME(), date=CURDATE(), ip='$ip'"; > > echo $sql; > > $logit = mysql_query($sql) or > die(mysql_error());

« previous php.db (#33160) next »