Hi All,
Help if you can,
The following script wont insert a row into my table.
There is an auto increment field at the start of the table called "ID".
<?php
// this is processed when the form is submitted
// back on to this page (POST METHOD)
if ($_SERVER['REQUEST_METHOD'] == "POST") {
// double-up apostrophes
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
$email = $_POST['email'];
$add1 = $_POST['add1'];
$add2 = $_POST['add2'];
$town = $_POST['town'];
$statecounty = $_POST['statecounty'];
$postzip = $_POST['postzip'];
// setup SQL statement
$SQL = " INSERT INTO tbl_sellers";
$SQL = $SQL . " '', sellerFirstName, sellerLastName, email, Address1, Address2, sellerTownCity, sellerStateProvince, zipPostCode) VALUES ";
$SQL = $SQL . " ('', '$firstname', '$lastname', '$email','$add1','$add2', '$town', '$statecounty', '$postzip') ";
//execute SQL statement
$result = mysql_db_query($db,"$SQL",$cid);
// check for error
if (!$result) { echo("ERROR: " . mysql_error() . "\n$SQL\n"); }
echo ("<p><b>New Link Added</b></p>\n");
}
?>