Guest User

Untitled

a guest
May 16th, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. db_con
  2.  
  3. <?php
  4. require_once("include/config.php");
  5. $db_con = mysql_connect(DB_SERVER, DB_USER, DB_PASS);
  6. if (!$db_con)
  7. die("Database Connection Failed: " . mysql_error());
  8.  
  9. $db_select = mysql_select_db(DB_NAME, $db_con);
  10. if (!$db_select)
  11. die("Database Selection Failed: " . mysql_error());
  12. ?>
Add Comment
Please, Sign In to add comment