This script will not insert the data from my form into the MySql database. I'm using the echo statements to verify two the data fields that's supposed to be inserted and that is correct. But I keep getting the "unable to Insert Data". Any ideas?
As a note, the columns are not specified so that it defaults to inserting all columns.
<?php
include ("dbconnect_test.php");
echo "<BR>";
echo "Receives ($name)"; echo "Receives ($chapter)";
echo "<BR>";
mysql_query ("INSERT INTO tbl_members",$db)
or die ("unable to Insert Data");
?>
<h2>Thanks!!</h2>
<h2><a href="view.php"> View The List </a></h2>
<?php