Re: Am I missing something?
| From: | Alexander | Date: | Sun, 28 Jan 2007 02:34:51 +0000 |
| Subject: | Re: Am I missing something? | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-42998@lists.php.net to get a copy of this message | ||
Alright, I did that. I now get :
INSERT INTO domains ( picture, thumbnail ) values( '', '')
and no data entered.
/* never take a hiatus from programming for a year */
----- Original Message ----- From: "Niel Archer" <niel@catweasel.org>
To: <php-db@lists.php.net>
Sent: Saturday, January 27, 2007 8:29 PM
Subject: Re: [PHP-DB] Am I missing something?
Hi you need to change this:$insert = 'INSERT INTO domains ( picture, thumbnail ) values( "$picture", "$thumbnail")';to be: $insert = "INSERT INTO domains ( picture, thumbnail ) values( '$picture', '$thumbnail')"; variables are only interpreted inside double quoted strings. Within single quotes, everything is taken exactly as it appears. Niel -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php