Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php header('Access-Control-Allow-Origin: *');
- $username = $_GET['fname'];
- $password = $_GET['fpass'];
- $con=new mysqli('mysql.hostinger.com.br',u348501196_andro,412167,u348501196_andro);
- // Check connection
- if (mysqli_connect_errno())
- {
- echo "Failed to connect to MySQL: " . mysqli_connect_error();
- }
- else
- {
- echo "connected!";
- }
- $qz = "SELECT id FROM members where username='".$username."' and password='".$password."'" ;
- $qz = str_replace("\'","",$qz);
- $result = mysqli_query($con,$qz);
- $result = mysqli_query($con,$qz);
- if (!$result) {
- printf("Error: %s\n", mysqli_error($con));
- }
- else{
- print("YES");}
- exit();
- while($row = mysqli_fetch_array($result))
- {
- echo $row['id'];
- }
- mysqli_close($con);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement