Trying to get code listed below to get past a (silly) parse error on the last line. An extra set of eyes would be appreciated...
Input is being received from a form; excuse the code...first iteration.
<?php
Variable declarations
$database = "";
$hostname = "localhost";
$username = "";
$password = "";
$table = "";
$key = $memberID;
$fnam = $firstname;
$mnam = $maidenname;
$lnam = $lastname;
$addr = $address;
$citynam = $city;
$statenam = $state;
$zipcode = $zip;
$phon1 = $phone1;
$phon2 = $phone2;
$phon3 = $phone3;
$mail1 = $email1;
$mail2 = $email2;
$submit = $SubmitForm;
#Establish connection to the MySQL DB
$dbh=mysql_connect($hostname,$username,$password) or die ("Could not connect to the server!");
#mysql_db_query($database, $sql);
Insert record into MySQL DB
$sql="INSERT INTO $table (memberID, firstname, maidenname, lastname, updated, address, city, state, zip, phone1, phone2, phone3, email1, email2) VALUES ('$key', '$fnam', '$mnam', '2002-03-23 21:20:37', '$addr', '$city', '$stat', '$zipcode', '$phon1', '$phon2', '$phon3', '$mail1', '$mail2');
if(!$res=mysql_query($sql, $dbh))
{
echo mysql_error();
exit();
}
?>