is_logged_in()!="") { $reg_user->redirect('index.php'); } if(isset($_POST['btn-signup'])) { $uname = trim($_POST['txtuname']); $email = trim($_POST['txtemail']); $upass = trim($_POST['txtpass']); $cell_2 = trim($_POST['txtcell']); $pcf_2 = trim($_POST['txtcity']); $code = md5(uniqid(rand())); $stmt = $reg_user->runQuery("SELECT * FROM maco_members WHERE user_email=:email_id"); $stmt->execute(array(":email_id"=>$email)); $row = $stmt->fetch(PDO::FETCH_ASSOC); if($stmt->rowCount() > 0) { $msg = "
Sorry ! email allready exists , Please Try another one
"; } else { if($reg_user->register($uname,$email,$upass,$code,$cell_2,$pcf_2)) { $id = $reg_user->lasdID(); $key = base64_encode($id); $id = $key; $message = " Hello $uname,

Welcome to Lighthousewebtv.org!
You have successfully registered to watch live service


Click HERE to SIGN IN



Thanks,"; $subject = "Confirm Registration"; $reg_user->send_mail($email,$message,$subject); $msg = "
You are welcome! You can now proceed to the LOGIN IN page.
"; } else { echo "sorry , Query could no execute..."; } if($stmt->execute()){ ?> Onitshamarketplace | An Online Directory For Onitsha and Its Business Environs