Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host="studentwebmysql.ewu.edu";
- $user="studentName"; //your username
- $password= “password”; //your password
- $database= "studentName"; //your username again
- $cxn=mysqli_connect($host, $user, $password, $database);
- $sql="SHOW STATUS"; //this is your SQL statement
- $result= mysqli_query($cxn,$sql);
- if($result == false)
- {
- print("Error: ".mysqli_error($cxn). "</p>");
- }//end of if
- else
- {
- print("Success!");
- }//end of else
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement