Advertisement
melody45

Untitled

Dec 18th, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. <?php
  2. $connection = mysql_connect("localhost","root","");
  3. if(!$connection){
  4. die("Database connection failed! " . mysql_error());
  5. }
  6.  
  7. $db_select = mysql_select_db("web_space",$connection);
  8. if(!$db_select){
  9. die("Database selection failed! " . mysql_error());
  10. }
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement