Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. <?php
  2. $host = "localhost";
  3. $username = "det du har";
  4. $password = "det du har";
  5. $database = "vikerfjell";
  6. $port = "3306";
  7.  
  8. $db = new mysqli($host,$username,$password, $database, $port);
  9. mysqli_set_charset($db, 'utf8');
  10.  
  11. if(mysqli_connect_errno($db)) {
  12. echo "Får ikke koblet til databasen";
  13. }
  14.  
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement