Guest User

Untitled

a guest
May 26th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <?php
  2. server with default setting (user 'root' with no password) */
  3. define('DB_SERVER', 'localhost');
  4. define('DB_USERNAME', 'root');
  5. define('DB_PASSWORD', '');
  6. define('DB_NAME', 'name');
  7.  
  8. $link = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME);
  9.  
  10. // Check connection
  11. if($link === false){
  12. die("ERROR: Could not connect. " . mysqli_connect_error());
  13. }
  14. ?>`
  15.  
  16. <?php
  17.  
  18. define('__ROOT__', dirname(dirname(__FILE__)));
  19. require_once(__ROOT__.'/config.php');
  20.  
  21. class Common {
  22. }
  23.  
  24. ?>
Add Comment
Please, Sign In to add comment