Re: PHP/MySQL
| From: | Morten Winkler Jørgensen | Date: | Mon, 12 Nov 2001 09:49:02 +0000 |
| Subject: | Re: PHP/MySQL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74245@lists.php.net to get a copy of this message | ||
p> $Query = "INSERT INTO table_name (Obj,Descrip) VALUES (keyboard,Device
p> to pound on when frustrated.)";
p> $Results = mysql_query($Query)
p> or die ("Query FAILED");
need to embed your strings in "" like
$Query = "INSERT INTO table_name (Obj,Descrip) VALUES (\"keyboard\",\"Device
to pound on when frustrated.\")";
--
Kind regards,
Morten Winkler