Re: Why won't this query go through?
| From: | Myron Turner | Date: | Mon, 12 Mar 2007 02:47:23 +0000 |
| Subject: | Re: Why won't this query go through? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-250265@lists.php.net to get a copy of this message | ||
Jochem Maas wrote:
Tijnema ! wrote:I find it's clearer to use the heredoc syntax: $query= <<<QUERY INSERT INTO visitors (username,password,email,firstname,lastname. . . etc) VALUES($username,$password,$email . . . etc ) QUERY; _____________________ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/On 3/11/07, Mike Shanley <thebarmy@omniversalism.com> wrote:I am just not understanding what I could have possibly done wrong with this query. All of the variables are good, without special characters in any sense of the word... So why isn't it importing anything? Thanks! $q = "INSERT INTOHi,visitors(username,password,firstname,lastname,birthdate,verifythis)VALUES ('".$username."', '".md5($password1)."', '".$email."', '".$firstname."', '".$lastname."', '".$birthdate."', '".$verifythis."');"; Haven't you converted all of your columns to literals: 'username', etc, which should be plain username?