runQuery("SELECT * FROM user WHERE userEmail=:email_id"); $stmt->execute(array(":email_id"=>$email)); $row = $stmt->fetch(PDO::FETCH_ASSOC); if($stmt->rowCount() > 0) { $msg = "
Sorry ! This email address is allready in use , Please Try another one
"; } else { if($reg_user->admin($fname,$mob,$email,$upass,$level,$code)) { $id = $reg_user->lasdID(); $key = base64_encode($id); $id = $key; $message = " Hello $fname,

Welcome to GRAET MADONNA SCHOOL SYSTEM
Your account is created and Activated
You can login to your account with the following details as supply

Email : $email ,

Password : $upass ,

Thanks,"; $subject = "WELCOME GRAET MADONNA SCHOOL SYSTEM"; $reg_user->send_mail($email,$message,$subject); $msg = "
Success! We've sent an email to $email. With your account details as supplied to help you remember it. Please check your spam mail if you did not see the mail in your inbox. Click Here to Continue
"; } else { $msg = "sorry , Some thing went wrong, try again"; } } } // Checkbox is selected //} } ?> Home


ADMIN REGISTRATION


Full Name
Mobile Number Email PASSWORD Confirm Password Admin Level