我在插入数据时遇到问题,它没有向我的 phpmyadmin 输入任何数据我有问题
<?php
if (isset($_POST['submit'])){
$LastName=$_POST['LastName'];
$FirstName=$_POST['FirstName'];
$MiddleInitial=$_POST['MiddleInitial'];
$Age=$_POST['Age'];
$Gender=$_POST['Gender'];
$Birthday=$_POST['Birthday'];
$Address=$_POST['Address'];
$EmailAddress=$_POST['EmailAddress'];
mysql_query("insert into studentsrecords(LastName,FirstName,MiddleInitial,Age,Gender,Birthday,Address,EmailAddress)
values('$LastName','$$FirstName','$MiddleInitial','$Age','$Gender','$Birthday','$Address','$EmailAddress',NOW())
")or die(mysql_error());
?>
<script type="text/javascript">
alert('You are Successfully Register Thank You');
window.location="index.php";
</script>
<?php
}
?>
这是我的 config.php