Advertisement
Guest User

Untitled

a guest
Jul 19th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1.  
  2. $username = "root";
  3. $password = "";
  4. $hostname = "localhost";
  5. $koblingen = mysql_connect($hostname, $username, $password)
  6. $database = "trendofoslo"
  7. or die("Unable to connect to MySQL");
  8. print "Connected to MySQL<br>"; // Koden er god hittil
  9.  
  10.  
  11. mysql_select_db($database, $koblingen) or die ($trendofoslo . " Database not found." . $root);
  12. echo "Database " . $trendofoslo . " is selected";
  13.  
  14. mysql_close($koblingen)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement