note 26749 deleted from function.define by didou

From: Date: Fri, 12 Sep 2003 12:14:50 +0000
Subject: note 26749 deleted from function.define by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-56374@lists.php.net to get a copy of this message
Note Submitter: scott@fuzzygroup.com ---- If you are looking to use constants in SQL statements then you need to have the constant names OUTSIDE your sql string for proper use i.e. define('EMAILS', 'fo2_emails'); $query = "INSERT INTO " . EMAILS . "(name) VALUES ('$name')" Note: I know that this is obvious but it's the kind of thing that catches newbies, so ... I suspect it actually catches most people the first time they use constants w/ SQL.

« previous php.notes (#56374) next »