1) { //$amount=40; $amount=99; } } else { if($country=="Malaysia") { if($rows_page_mem==0) { //$amount=40; $amount=12; } if($rows_page_mem==1) { //$amount=40; $amount=7; } if($rows_page_mem>1) { //$amount=40; $amount=5; } } else { if($rows_page_mem==0) { //$amount=40; $amount=50; } if($rows_page_mem==1) { //$amount=40; $amount=30; } if($rows_page_mem>1) { //$amount=40; $amount=20; } } } $payment_mode=addslashes($_POST['payment_mode']); if($payment_mode=="Cash") { $login_12 = "SELECT * from tbl_appointment WHERE order_id!= '' and payment_type='Cash' "; $resqry_12 = mysql_query($login_12) or die("ERROR:".mysql_error()); $numrows_12 = mysql_num_rows($resqry_12); $tot_order_id=($numrows_12+1); } else { $login_12 = "SELECT * from tbl_appointment WHERE order_id!= '' and payment_type!='Cash' "; $resqry_12 = mysql_query($login_12) or die("ERROR:".mysql_error()); $numrows_12 = mysql_num_rows($resqry_12); $tot_order_id=($numrows_12+2); } $Insert_Qry = "INSERT INTO tbl_member (`name`,`gender`,`phone`,`email`,`dob`,`password`,`language`,`skypeid`,`country`) VALUES ('$name','$id_gender','$phone','$email','$dob1','$password','$id_lang','$skypeid','$country')"; $Insert_Run = mysql_query($Insert_Qry) or die("Insert query error".mysql_error()); $attachmentfileid = mysql_insert_id(); $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`,`payment_type`,`c_id`,`added_date`,`order_id`) VALUES ('$attachmentfileid','$appointment_date','$appointment_time_1','$appointment_time_2','$appointment_time_3','$message','$email','$browsessionid','1','$consulting_for','$payment_amount_1','$payment_mode','1','$date','$tot_order_id')"; $Insert_Run_1 = mysql_query($Insert_Qry_1) or die("Insert query error".mysql_error()); $attachmentfileid_1 = mysql_insert_id(); $login = "SELECT * from tbl_appointment WHERE session_id= '$attachmentfileid_1' "; $resqry = mysql_query($login) or die("ERROR:".mysql_error()); $numrows = mysql_num_rows($resqry); $Fetcorderid = mysql_fetch_array($resqry); $mailcopy=$Fetcorderid ['email_id']; $date=$rowsss['date']; $me_id=$Fetcorderid['mem_id']; $order_id=$Fetcorderid['id']; $ap_date= $Fetcorderid['appointment_date']; $consulting_for= $Fetcorderid['consulting_for']; $ap_hour= sprintf("%02d",$Fetcorderid['hour_date']); $ap_min= sprintf("%02d",$Fetcorderid['min_date']); $ap_sec= $Fetcorderid['am_date']; $amount= $Fetcorderid['amount']; $Query = "SELECT * from `tbl_member` where id='$me_id' "; $name = mysql_query($Query) or die("ERROR:".mysql_error()); $no=mysql_num_rows($name); $row = mysql_fetch_array($name); $firstname= $row['name']; $country= $row['country']; $mobss= $row['phone']; $language= $row['language']; $age= $row['dob']; $skypeid=$row['skypeid']; $user = "A5aa862a129267ac55838c7f2e5869d7f"; //your username $password = "conform123"; //your password $senderid="DRANBU"; //Your senderid $messagetype="N"; //Type Of Your Message $url="http://hpsms.dial4sms.com/api/web2sms.php?"; $message = "Hi ".$firstname." your appointment with Dr. G.ANBUGANAPATHI on ".$ap_date." ".$ap_hour.":".$ap_min.":".$ap_sec." is booked"; //enter Your Message $message = urlencode($message); $ch = curl_init(); if (!$ch){die("Couldn't initialize a cURL handle");} $ret = curl_setopt($ch, CURLOPT_URL,$url); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt ($ch, CURLOPT_POSTFIELDS, "workingkey=$user&sender=$senderid&to=$mobss&message=$message"); $ret = curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $curlresponse = curl_exec($ch); // execute 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]; $_SERVER['DOCUMENT_ROOT']."/uploads/$userfile_name" ; @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:/siddhaadmin/order-admin/appointment_details_view_print_admin.php?id=".$attachmentfileid_1); //header("location:/para/siddha_live3/admin/order-admin/appointment_details_view_print_admin.php?id=".$attachmentfileid_1); } ?>

, ( Indian Standard Time (IST) )

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

">