Student Enrty

[insert_php]
mysql_connect(‘mysql.hostinger.in’,’u898324732_evaga’,’qwertyuiop7614AO’) or die(“You are not authorised contact web administrator”);
mysql_select_db(‘u898324732_epara’) or die(“data connection not found”);

if(isset($_POST[‘submit’])){
$rno = $_POST[‘registration_no’];
$jnd = $_POST[‘joining_date’];
$first_name = $_POST[‘first_name’];
$last_name = $_POST[‘last_name’];
$f_name = $_POST[‘father_name’];
$address = $_POST[‘address’];
$address2 = $_POST[‘address_2’];
$City = $_POST[‘city’];
$state = $_POST[‘state’];
$country = $_POST[‘country’];
$mno = $_POST[‘mobile_no’];
$course = $_POST[‘course’];
$duration = $_POST[‘duration’];
$cmpldate = $_POST[‘complition_date’];
$grade = $_POST[‘grade’];
if(mysql_query(” insert into ait_students_details (registration_no, joining_date, first_name, last_name, father_name, address, adsress_line, city, state, country, mobile_no, course, duration, complition_date, grade)
Values (‘$rno’,’$jnd’,’$first_name’,’$last_name’,’$f_name’,’$address’,’$address2′,’$City’,’$state’,’$country’,’$mno’,’$course’,’$duration’,’$cmpldate’,’$grade’)”))
{
echo “Data Submitted sucessfully!”;
}
}

[/insert_php]





Untitled Document

Registration Number:

Joining Date:

First Name:

Last Name:

Father Name:

Address:

Address Line:

City:

State:

Country:

Mobile Number:

Course:

Duration:

Complition Date:

Persentage: