this is my poll code
i'm getting data in Mysql
Student Performa
Department:
Department
Computer Science
Zoology
Degree
Degree
Computer Science
Chemistry
BBA
Semester
semester
FIRST (01)
SECOND (02)
THIRD (03)
FOURTH (04)
FIFTH (05)
SIX (06)
SEVEN(07)
EIGHT (08)
Study Year
Select_year
2014
2013
2012
2011
2010
Faculty
Faculty
Science
Arts
1. The work in the Program is too Heavy and induces a lot of
pressure
very satisfied
satisfied
uncertain
and this is my PHP code
$db_name="performa"; // your database name
$con=mysql_connect("$host", "$username", "$password")or die("cannot connect"); //mysql connection
mysql_select_db("$db_name")or die("can not select DB"); //select your database
error_reporting(E_ALL ^ E_NOTICE);
$depart = $_POST['depart'];
$degree = $_POST['degree'];
$semester = $_POST['semester'];
$study_year = $_POST['study_year'];
$faculty = $_POST['faculty'];
$query = "INSERT INTO performa1 (depart,degree,semester,study_year,faculty) VALUES ('$depart', '$degree', '$semester', '$study_year', '$faculty')";
mysql_query($query) or die('Query "' . $query . '" failed: ' . mysql_error());
// name, email and address are fields of your fields; test your table. $name, $email and $address are values collected from the form
?>
this is working fine in website but i want to use it in intel xdk and intel xdk dont support PHP/Mysql but we can do it with AJAX with JQUERY call PHP file
i'm trying to do it but i dont know how to do it correctly
so can anyone tell me where to place PHP file and how to do it with AJAX or different procedure
i just want to get the data into database
Thanks