-
Notifications
You must be signed in to change notification settings - Fork 0
/
sql.html.html
1 lines (1 loc) · 996 Bytes
/
sql.html.html
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/></head><body>function register($loca,$name,$email,$mobile,$password,$connection){<br> $sql=mysqli_query($connection,"select * from admindata where location='$loca'");<br> if (mysqli_num_rows($sql)>0) {<br> ?><br> <script type="text/javascript"><br> alert("user arleady exists");<br> <a href="http://window.location.replace">window.location.replace</a>("<a href="http://index.php">index.php</a>");<br> </script><br> <?php<br> }<br> else{<br> $sql1=mysqli_query($connection,"insert into admindata (location,name,email,mobile,password) values('$loca','$name','$email','$mobile','$password')");<br> if ($sql1) {<br> ?><br> <script type="text/javascript"><br> alert("user successfully registered")<br> <a href="http://window.location.replace">window.location.replace</a>("<a href="http://index.php">index.php</a>");<br> </script><br> <?php<br> }<br> }<br><br>}</body></html>