Related Combo box not functioning Home Forums PHP Related Combo box not functioning
In the following code the section semester only show the semester value but related combo box for subject not working please guide the code in pink color not working session_start(); if (!array_key_exists("user", $_SESSION)) { header('Location: index.php'); exit; }
function valid($instid,$title,$f_name,$e_mail,$mobile_numb,$designation,$sem, $area_exp,$year_exp,$course_id, $error) { ?>
http://www.w3.org/TR/html4/strict.dtd">
SimpleAdmin - Full width page http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js">>
if ($error != '') { echo '
'.$error.'
';
}
?>
Institute Code Title Examiner Name Email Address Mobile Number Designation
Area of Expertise Year of Experience Course Edit Delete include('config.php'); $result1 = mysql_query("SELECT * FROM examinerinfo WHERE course_id='Computer Engineering' ORDER BY id DESC") or die(mysql_error()); while($row = mysql_fetch_array( $result1 )) { ?>
} ?>
}
include('config.php');
if (isset($_POST['submit'])) { $instid = mysql_real_escape_string(htmlspecialchars($_POST['instid'])); $title = mysql_real_escape_string(htmlspecialchars($_POST['title'])); $f_name = mysql_real_escape_string(htmlspecialchars($_POST['f_name'])); $e_mail = mysql_real_escape_string(htmlspecialchars($_POST['e_mail'])); $mobile_numb = mysql_real_escape_string(htmlspecialchars($_POST['mobile_numb'])); $designation = mysql_real_escape_string(htmlspecialchars($_POST['designation'])); $sem = mysql_real_escape_string(htmlspecialchars($_POST['sem'])); $area_exp = mysql_real_escape_string(htmlspecialchars($_POST['area_exp'])); $year_exp = mysql_real_escape_string(htmlspecialchars($_POST['year_exp'])); $course_id = mysql_real_escape_string(htmlspecialchars($_POST['course_id'])); if ($instid == '' || $title == '' || $f_name == '' || $e_mail == '' || $mobile_numb == ''|| $designation == '' || $sem== '' || $area_exp == '' || $year_exp == ''|| $course_id == '') {
$error = 'Please enter the details!';
valid($instid,$title,$f_name,$e_mail,$mobile_numb,$designation,$sem, $area_exp, $year_exp,$course_id,$error); } else {
mysql_query("INSERT examinerinfo SET instid='$instid',title='$title', f_name='$f_name', e_mail='$e_mail',mobile_numb='$mobile_numb',designation='$designation', sem='$sem',area_exp='$area_exp', year_exp='$year_exp', course_id='$course_id'") or die(mysql_error());
header("Location: co.php"); } } else { valid('','','','','','','','','','',''); } ?> v
Replies
Know the answer? Post it — somebody with the same question will find it here.