Somewhat self explanatory. It's pulling data off of a form from a previous page, and I want it to send it to the table "form". Everything works on the if/then side, but something is missing/wrong with my insert code, becuase it's not inserting it into the database.
<?php
$fname = $_POST['fname'];
$lname = $_POST['lname'];
$address = $_POST['address'];
$city = $_POST['city'];
$state = $_POST['state'];
$zip = $_POST['zip'];
$phone = $_POST['phone'];
$year = $_POST['year'];
$paid = $_POST['paid'];
if((!isset($fname)) AND (!isset($lname)) AND (!isset($address)) AND (!isset($city)) AND (!isset($state)) AND (!isset($zip)) AND (!isset($phone)) AND (!isset($year)) AND (!isset($paid)))
{
require_once('../Connections/MX6_Performance.php');
mysql_select_db (form);
mysql_query("INSERT INTO people (`fname` ,`lname` ,`address` ,`city` ,`state` ,`zip` ,`phone` ,`year` ,`paid`)
VALUES ('$fname','$lname','$address','$city','$state','$zip','$phone','$year','$paid')");
}
?>