Advertisement
Guest User

Untitled

a guest
Oct 8th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1. <?php
  2. error_reporting(E_ERROR | E_WARNING | E_PARSE);
  3.  
  4. $mysql_host = "localhost";
  5. $mysql_database = "wintersword";
  6. $mysql_user = "root";
  7. $mysql_password = "";
  8.  
  9. $db = mysql_connect("$mysql_host","$mysql_user","$mysql_password") or die("Could not connect to our database, check back later!");
  10. if(!$db)
  11.     die("Failed.");
  12. if(!mysql_select_db("$mysql_database",$db))
  13.     die("No database selected.");
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement