How To Check EMAIL Id Is Registered Or Unregistered In Database


check email exist or not


How To Check Email Already Exit Or Not-Using Php And Mysql




Email id database me registered hai ya nhi ye janna hamare liye bhut jarruri hota hai .iske liye ajj me apko ek simple script btane wala hu jiska use aap apne project me easily kar sakte ho.

Example-agar hm koi signup form bna rhe hai or ham chahte hai ki koi user bar bar same email id se register ne kare to ye script hmare liye duplication ko rokne me madad karegi.iska use karke aap database me duplicate entry hone se rok sakte ho.





php script to validate email address-



index.php




<?php

  if(isset($_REQUEST['send']))

      {



$con=mysqli_connect("localhost","root","","sendmail");

$email=$_POST["email"];





$query = "SELECT * FROM Users WHERE email='$email'";



$res_u = mysqli_query($con, $query );



if (mysqli_num_rows($res_u) > 0) {

echo "You are subscribed Our Website Please Check Download Link IN your email Id";



  }else{



  echo "You are Not Subscribed Our Blog Firstly Subscribe Our Blog ";



  }







  }

  ?>







  <html>

<head>

     </head>

<body>

<h1>How To Check User Are Registered And Unregistered Using Php  & Mysql </h1>

  

      <form action="" method="POST">



      <label for="email">Email:</label>

      <h1><input type="email"  name="email"></h1>

      </div>

  

      <button type="submit" name="send" >Check</button>

      </form>

      </div>

      

</body>

</html>

App apne database me 1 ya 2 email id store kar le fir aap check kijiye program ko execute karke …

Hame mostly email id exit or not  exit check karne ki jrrurt padti hai ….

M ummid karta hu ki apke liye ye post helpful hogi .

Thank You

Team Gajabwap Web In Hindi


Previous
Next Post »

1 comments:

Click here for comments
ssss123456
admin
16 June 2018 at 08:07 ×

nice article www.sonuwap.ga

Congrats bro ssss123456 you got PERTAMAX...! hehehehe...
Reply
avatar
Thanks for your comment