Advertisement
chappati21

Untitled

Mar 14th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <?php
  2. # CandyBB v1
  3. # Configuration file
  4. # Copyright (c) 2016
  5. # by chappati21 & Candy
  6. # Do not copy and call as own!
  7.  
  8. # Time to set MySQL data!
  9.  
  10. $mysql_host = 'host';
  11. $mysql_user = 'user';
  12. $mysql_pass = 'pass';
  13. $mysql_name = 'name';
  14.  
  15. # Now connect to the database
  16.  
  17. $connect = mysql_connect($mysql_host, $mysql_user, $mysql_pass);
  18. $select = mysql_select_db($mysql_name, $connect);
  19.  
  20. if (!$connect) {
  21. die('Error due connecting to <b>'.$mysql_host.'</b>!');
  22. }
  23. if (!$select) {
  24. die('Error due selecting <b>'.$mysql_name.'</b>!');
  25. }
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement