Guest User

Untitled

a guest
Oct 28th, 2016
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. <?php
  2.  
  3. $dbName ="database";
  4. $user = "user";
  5. $pass = "password";
  6. $host = "localhost";
  7.  
  8.  
  9.  
  10. $db = new mysqli("$host", "$user", "$pass", "$dbName");
  11. if (mysqli_connect_errno()>0)
  12. {
  13. die("Failed to connect to MySQL: ");
  14. }
  15. $site="http://example.com";
  16. ?>
Add Comment
Please, Sign In to add comment