insert into
| From: | shawn | Date: | Tue, 24 Apr 2001 17:26:48 +0000 |
| Subject: | insert into | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-50130@lists.php.net to get a copy of this message | ||
Could someone tell me how to actually execute this script please?
$hostname = "";
$username = "";
$password = "";
$dbName = "";
$userstable = "booking";
MYSQL_CONNECT($hostname, $username, $password)
or die("Unable to connect to database");
@mysql_select_db( "$dbName")
or die( "Unable to select database");
$mysql_query 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');
MYSQL_CLOSE();
?>
Thanks, also if you know any tutorials for PHP and MySQL
Shawn