1) { $amount=100; } $Insert_Qry_1 = "INSERT INTO tbl_appointment (`mem_id`,`appointment_date`,`hour_date`,`min_date`,`am_date`,`des`,`email_id`,`session_id`,`status`,`consulting_for`,`amount`) VALUES ('$attachmentfileid','$appointment_date','$appointment_time_1','$appointment_time_2','$appointment_time_3','$message','$email','$browsessionid','0','$consulting_for','$amount')"; $Insert_Run_1 = mysql_query($Insert_Qry_1) or die("Insert query error".mysql_error()); $attachmentfileid_1 = mysql_insert_id(); if($_FILES['file']['name']!="") { $size = 190; // the thumbnail height $filedir = 'uploads/'; // the directory for the original image $thumbdir = 'uploads/'; // the directory for the thumbnail image $maxfile = '200000000000'; $mode = '0666'; $userfile_name = $_FILES['file']['name']; $userfile_tmp = $_FILES['file']['tmp_name']; //$userfile_name = $_FILES['uploadFile']['name']; //$userfile_tmp = $_FILES['uploadFile']['tmp_name']; $getExt = explode ('.', $userfile_name); $rand_name = md5(rand(000,999)); /* $prod_img = $filedir.$mysql_insert_id.$i.$getExt[0].".".$getExt[1];*/ $new_file_name = $userfile_name; //exit(); $new_file_name = str_replace('&','and',$new_file_name); $new_file_name = str_replace('#','',$new_file_name); $new_file_name = str_replace('+','',$new_file_name); $new_file_name=($attachmentfileid.$new_file_name); $prod_img = $filedir.$new_file_name; // original_images/456546565465465464jhh.jpg $items[] = $prod_img; $prod_img_thumb = $thumbdir.$getExt[0].".".$getExt[1]; move_uploaded_file($userfile_tmp, $prod_img); $upload_img = mysql_query("UPDATE tbl_appointment SET document_name='".$new_file_name."' WHERE id='".$attachmentfileid_1."'"); } $id=$_REQUEST['id']; $m_id=$_REQUEST['m_id']; header("location:appointment-confirmation.php?id=".$id ."&m_id=".$m_id); } ?>

,

checked="checked" value="male" name="id_gender"> Male checked="checked" value="female" name="id_gender"> Female

">