Help me with this php code

How to use phpmyadmin.... phpmyadmin related arguments. Even phpMyAdmin issues

Moderators: macek, egami, gesf

Post Reply
athrin071

Help me with this php code

Post by athrin071 » Tue Aug 23, 2011 2:12 pm

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: Select all

<?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

athrin071

Re: Help me with this php code

Post by athrin071 » Wed Aug 24, 2011 5:54 am

this code doesnt run.. i just dont know why... the record doesnt save at my localhost.

athrin071

Re: Help me with this php code

Post by athrin071 » Thu Aug 25, 2011 7:33 am

not that.. i ask is this code correct? i already created a form and this is only php code..

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest