Hi Experts, below is my data file and I want to create form the basis of data returned by the following code.
getdata.php
<?php
include ("dbConnect.php");
$examID = $_POST['examID'];
$sql= mysql_query("select * from examsub where examID='1');
if(mysql_num_rows($sql)>0)
{
while($row=mysql_fetch_array($sql3))
{
echo $row['examID'].$row['subject'].$row['thrymarks'].$row['pracmarks'].$row['subjectID'];
}
}
?>
Below is the code from where when I press a button a form is create on the basic for rows returned by the above code.
$("#examID").change(function(){
$.post("getdata.php", {examID: from.examID.value},
function(str){
/*
// code here
*/
});
});
Please help.