Help me with this php code

A

Anonymous

Guest
i cant run this code please check this for me. if got wrong tell me please. i already tried many time and change it but i still cant run. thanks for reply ^_^
Code:
<?php

include("connectDB.php");

if(isset($_GET["Submit"]))
{
   $LecId=$_GET['Lecturer_id'];
   $LecName=$_GET['Lecturer_name'];
   $LecFaculty=$_GET['Lec_faculty'];
   $LecEmail=$_GET['Lec_email'];
   $LecContact=$_GET['Lec_contact'];
   $LecUname=$_GET['Lec_uname'];
   $LecPword=$_GET['Lec_pword'];

   mysql_query("INSERT INTO lecturer(Lecturer_id, Lecturer_name, Lec_faculty, Lec_email, Lec_contact, Lec_uname, Lec_pword)
   VALUES('$LecId','$LecName','$LecFaculty','$LecEmail','$LecContact','$LecUname','$LecPword')");

}
?>

kind regards,
Athrin
 
this code doesnt run.. i just dont know why... the record doesnt save at my localhost.
 
not that.. i ask is this code correct? i already created a form and this is only php code..
 
Back
Top