OverLord Shell
<?php
require_once("db/conn.php");
if(isset($_POST['memcd'])){
$memcd=str_replace(' ', '', $_POST['memcd']);
/*$memcodedata=getData1('otms_mst_contact',"REPLACE(memcode,' ','')","'".$memcd."'","*"," and business='' ");
print_r($memcodedata);exit;*/
$editq="SELECT * FROM otms_mst_contact WHERE REPLACE(memcode,' ','')='". $memcd."' and (business='' OR business is null) ";
$editr=$connection_jc->query($editq);
$arrinfo=$editr->fetch_assoc();
$editr->free();
if(count($arrinfo)!=0){
echo $arrinfo['con_sr_no']."~".$arrinfo['memcode']."~".$arrinfo['fname'] ." ". $arrinfo['mname'] ." ". $arrinfo['lname']."~". $arrinfo['regsrno']."~".$arrinfo['regdistsrno']."~".$arrinfo['state']."~".$arrinfo['city']."~".$arrinfo['pincode']."~".$arrinfo['email']."~".$arrinfo['faxno']."~".$arrinfo['mobno']."~".$arrinfo['address']."~".'success'; exit;
}else{
//$memcodedata1=getData1('otms_mst_contact',"REPLACE(memcode,' ','')","'".$memcd."'","*"," and business='y'");
$editq1="SELECT * FROM otms_mst_contact WHERE REPLACE(memcode,' ','')='". $memcd."' and business='y'";
$edit1r=$connection_jc->query($editq1);
$arrinfo1=$edit1r->fetch_assoc();
$edit1r->free();
if(count($arrinfo1)!=0){
echo "registered";exit;
}else
{
echo "error_";exit;
}
}
}else{echo "error";exit;
}
?>
xRyukZ - Copyright 2k19