hi, would anyone please point out why my data don't go into the database table?
it is tested successfully connected to the database and the table maapa
thanks
<?php
mysql_connect("localhost", "root", "") or die(mysql_error());
echo "successfully logged in </br>";
mysql_select_db("maapa") or die(mysql_error());
echo "successfully connected to database maapa </br>";
//extract($_REQUEST);
$pid = $_POST['pid'];
$firstName= $_POST['firstName'];
$middleName= $_POST['middleName'];
$lastName= $_POST['lastName'];
$sex= $_POST['sex'];
echo $firstName;
echo $lastName;
echo $middleName;
mysql_query("INSERT INTO person(pID, firstName, middleName, lastName) VALUES('$pid', '$firstName', '$middleName', '$lastName')");
?>