I have this little insert program, almost identical to other working programs, which doesn't work and I don't know why. Below is the code ?
the below PHP file is mschginsert.php
PHP Code:
<?php
$dep=$_POST['dep'];
$name=$_POST['name'];
$apt=$_POST['apt'];
$amtpaid=$_POST['amtpaid'];
$damage=$_POST['damage'];
$month=$_POST['month'];
$courtcost=$_POST['courtcost'];
$nsf=$_POST['nsf'];
$latechg=$_POST['latechg'];
$comments=$_POST['comments'];
mysql_connect(localhost,root,"");
mysql_select_db(mschgdb) or die ("Unable to select database");
$query = "INSERT INTO miscdata VALUES ('','$dep','$name','$apt','$amtpaid','$damage','$month','$courtcost','$nsf','$latechg','$comments')";
mysql_query($query);
mysql_close();
?>