Advertisement
Guest User

Hadi_Zahab

a guest
Apr 5th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. <?php
  2. $server="localhost";
  3. $username="root";
  4. $pass="";
  5. $conn=new mysqli($server,$username,$pass);
  6. if($conn->connect_error)
  7.  
  8. die("no connection");
  9.  
  10. echo "connection successful";
  11.  
  12. $querry="select * FROM users where id=5";
  13. $result=mysqli_query($result)>0){
  14. echo "Result found";}
  15. else{
  16. echo "No Result";}
  17.  
  18.  
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement