Hi, i m the beginner for php.What happen to my coding ~ it cannot work~~
require_once('../../../Connections/admin_db.php');
$submit = $_POST['Submit'] ;
if ($submit == 'Submit')
{
$ag = $_POST['ag'];
//Insert Data into Instructor Profile Info
$q = "INSERT INTO user(`age`)
VALUES ('$ag') " ;
mysql_query($q) or die(mysql_error()) ;
if (!mysql_error())
echo "<div align=center class=alert3>Instructor '$ag - $ag' Registration SUCCESS!!!</div>
<script type=\"text/javascript\">alert(\"Instructor '$ag - $ag' Registration SUCCESS!!!\") ;</script>";
}