Re: Why won't this query go through?
| From: | Tijnema ! | Date: | Sun, 11 Mar 2007 16:38:25 +0000 |
| Subject: | Re: Why won't this query go through? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-250237@lists.php.net to get a copy of this message | ||
On 3/11/07, Mike Shanley <thebarmy@omniversalism.com> wrote:
Hi, 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 INTO* me is gettings crazy!!! ALWAYS USE THE MYSQL_ERROR COMMAND! mysql_query($q); becomes mysql_query($q) or die(mysql_error()); then post the result of the error, or fix it by yourself when you know where the error is. Tijnema --visitors(username,password,firstname,lastname,birthdate,verifythis)VALUES ('".$username."', '".md5($password1)."', '".$email."', '".$firstname."', '".$lastname."', '".$birthdate."', '".$verifythis."');";mysql_query($q);
Mike Shanley ~you are almost there~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php