Guest User

Untitled

a guest
Jul 5th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. <?php
  2.  
  3. $host = "localhost"; /* Host name */
  4. $user = "root"; /* User */
  5. $password = ""; /* Password */
  6. $dbname = "testquery"; /* Database name */
  7.  
  8. $con = mysqli_connect($host, $user, $password,$dbname);
  9. // Check connection
  10. if (!$con) {
  11. die("Connection failed: " . mysqli_connect_error());
  12. }
Add Comment
Please, Sign In to add comment