Advertisement
Guest User

Untitled

a guest
Feb 28th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <?php
  2. $host="studentwebmysql.ewu.edu";
  3. $user="studentName"; //your username
  4. $password= “password”; //your password
  5. $database= "studentName"; //your username again
  6.  
  7. $cxn=mysqli_connect($host, $user, $password, $database);
  8. $sql="SHOW STATUS"; //this is your SQL statement
  9. $result= mysqli_query($cxn,$sql);
  10. if($result == false)
  11. {
  12. print("Error: ".mysqli_error($cxn). "</p>");
  13. }//end of if
  14. else
  15. {
  16. print("Success!");
  17. }//end of else
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement