Re: insert data to mysql
| From: | Thomas Deliduka | Date: | Mon, 23 Apr 2001 17:45:40 +0000 |
| Subject: | Re: insert data to mysql | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-49895@lists.php.net to get a copy of this message | ||
On 4/23/2001 1:32 PM this was written:
> $sql = "INSERT INTO $userstable (client, contact, email, address, city, state,
> zip, phone, fax, model, country, details, type)
>
> VALUES("$client", "$contact", "$email", "$address",
> "$city", "$state", "$zip",
> "$phone", "$fax", "$model", "$country",
> "$details", "$type")";
Um.. You're using double-quotes inside of double quotes. You need to use
single quotes....
VALUES('$client', '$contact', '$email', '$address',
'$city', '$state',
'$zip', '$phone', '$fax', '$model', '$country',
'$details', '$type')";
--
Thomas Deliduka
IT Manager
-------------------------
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/