I need an expert to tell me what I am doing wrong
| From: | YoBro | Date: | Sat, 24 Mar 2001 00:37:56 +0000 |
| Subject: | I need an expert to tell me what I am doing wrong | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-45371@lists.php.net to get a copy of this message | ||
What could I possibly be doing wrong here. The information just will not
insert into my database.
ARGH!
Please help if you can...
<?php
$user = "xyz";
$pass = "123";
//Connect to Database xyz
$db = mysql_connect("localhost", $user, $pass)OR DIE("Unable to connect to
database");
mysql_select_db("xyz",$db) OR DIE("Unable to connect to database");
$sql = ("INSERT INTO orders VALUES
'product,name,email'($product,$name,$email)");
$result = mysql_query($sql);
echo "Order for the $product has been sent";
?>
--
Regards,
YoBro
-------------------------------------------------------------
DO NOT REPLY TO THIS VIA EMAIL
PLEASE USE THE NEWSGROUP
All emails sent to this address are automatically deleted.
This is to avoid SPAM!
-------------------------------------------------------------