Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username = $_GET['Username'];
- $password = $_GET['Password'];
- $con=mysqli_connect("localhost","root","root","the_tech");
- // Check connection
- if (mysqli_connect_errno())
- {
- echo "Failed to connect to MySQL: " . mysqli_connect_error();
- }
- $qz = "SELECT id FROM members where username='".$username."' and password='".$password."'" ;
- $qz = str_replace("\'","",$qz);
- $result = mysqli_query($con,$qz);
- while($row = mysqli_fetch_array($result))
- {
- echo $row['id'];
- }
- mysqli_close($con);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement