Re: What is diff between SQL .... VALUES ($a.$b) and SQL .... VALUES (a,b)?

From: Date: Mon, 03 Sep 2001 17:40:33 +0000
Subject: Re: What is diff between SQL .... VALUES ($a.$b) and SQL .... VALUES (a,b)?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1421@lists.php.net to get a copy of this message
So sprach »Jan Holland« am 2001-09-03 um 19:29:43 +0200 : > $sql = "INSERT INTO messages (timestamp, n1type, n6doel )"; > $sql .= "VALUES (unix_timestamp() . $n1type . $n6doel )"; I think you mixed up , and . in the 2nd row. > $sql = "INSERT INTO messages (timestamp, n1type, n6doel)"; > $sql .= "VALUES (unix_timestamp() , n1type , n6doel )"; And this time you forgot to tell PHP that n1type and n6doel are variables, ie. you forgot the $. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 10 hours 39 minutes

« previous php.smarty.general (#1421) next »