include "member/db/Connection.php";
$db= new dbConn();
$db->connect();
date_default_timezone_set('Asia/Calcutta');
?>
P2P DONATION SYSTEM
if(trim($_POST["f_action"]) == "YesSend") {
$sql_sp = $db->query("select * from member_detail where mobno='".trim($_POST["txt_phno"])."' ");
if($db->countRows($sql_sp) >=1){ messege("Your Mobile Number Is Already Registered With I Donate You!");
redirect('https://idonateyou.com/'); }
else {
$sql_req = $db->query("select * from inter_memb where phone='".trim($_POST["txt_phno"])."' ");
if($db->countRows($sql_req) >=1){ messege("Your Request With Same Mobile Number Is Already Registered With I Donate You!");
redirect('https://idonateyou.com/'); }
else {
$sql_newmem = $db->query("Insert into inter_memb (dte_added, name, phone, mleid, city, state, contry) VALUES
('".date('Y-m-d G:i:s') ."', '".trim($_POST["txt_fname"])."', '".trim($_POST["txt_phno"])."', '".trim($_POST["txt_mailid"])."',
'".trim($_POST["txt_citynme"])."', '".trim($_POST["txt_statnme"])."', 'India' )");
messege("Your Request Is Successfully Registered With I Donate You!"); redirect('https://idonateyou.com/');
} } }
?>