Advertisement
Guest User

Untitled

a guest
Mar 14th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. <?php
  2. $localhost = "localhost";
  3. $mysql_user = "root";
  4. $mysql_pass = "";
  5. $database = "";
  6.  
  7. $link = mysql_connect($localhost, $mysql_user, $mysql_pass);
  8. if (!$link) {
  9. die('Verbindung schlug fehl: ' . mysql_error());
  10. }
  11.  
  12. mysql_select_db($database, $link);
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement