ob_start();
session_start();
?>
$host = "//localhost";
$user = "studentloan";
$pass = "mL5hejr";
$dbname = "studentloan";
$conndb = mysql_connect($host,$user,$pass) or die ("Erwwror");
mysql_select_db($dbname,$conndb);
mysql_query("SET NAMES UTF8");
mysql_query("set character set utf8");
?>
Untitled Document
if($_GET["action"]!="save") {?>
}?>
if($_GET["action"]=="save")
{
$mother_name = $_POST["mother_name"];
$mother_lastname = $_POST["mother_lastname"];
$mother_id_card = $_POST["mother_id_card"];
$mother_status = $_POST["mother_status"];
$mother_old = $_POST["mother_old"];
$mother_num_home = $_POST["mother_num_home"];
$mother_moo = $_POST["mother_moo"];
$mother_soy = $_POST["mother_soy"];
$mother_road = $_POST["mother_road"];
$mother_code = $_POST["mother_code"];
$mother_numberphone = $_POST["mother_numberphone"];
$mother_id_tax = $_POST["mother_id_tax"];
$mother_max_study = $_POST["mother_max_study"];
$mother_school = $_POST["mother_school"];
$mother_job = $_POST["mother_job"];
$mother_expansion_job = $_POST["mother_expansion_job"];
$mother_revenue = $_POST["mother_revenue"];
$mother_tumbol=$_POST["tumbonHidden3"];
$mother_aumpur= $_POST["amphurHidden3"];
$mother_jungwud=$_POST["provinceHidden3"];
$query1 = "update nisit set
mother_name='$mother_name' ,mother_lastname='$mother_lastname' ,mother_id_card='$mother_id_card' ,mother_status='$mother_status' ,mother_old='$mother_old' ,mother_num_home='$mother_num_home' ,mother_moo='$mother_moo' ,mother_soy='$mother_soy' ,mother_road='$mother_road' ,mother_tumbol='$mother_tumbol' ,mother_aumpur='$mother_aumpur' ,mother_jungwud='$mother_jungwud' ,mother_code='$mother_code' ,mother_numberphone='$mother_numberphone',mother_id_tax='$mother_id_tax',mother_max_study='$mother_max_study',mother_school='$mother_school',mother_job='$mother_job',mother_expansion_job='$mother_expansion_job',mother_revenue='$mother_revenue' where nisit_id_card='".$_SESSION["mem_idcard"]."'" ;
//echo $query1;
$objQuery = mysql_db_query($dbname,$query1);
if($objQuery){
echo "";
}
}
?>