Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <?php
  2.  
  3. // This file contains the database access information.
  4. // This file also establishes a connection to MySQL
  5. // and selects the database.
  6.  
  7. // Set the database access information as constants:
  8. DEFINE ('DB_USER', 'root');
  9. DEFINE ('DB_PASSWORD', 'google');
  10. DEFINE ('DB_HOST', 'localhost');
  11. DEFINE ('DB_NAME', 'swimdb');
  12.  
  13. // Make the connection:
  14. $dbc = @mysqli_connect (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) OR die ('Could not connect to MySQL: ' . mysqli_connect_error() );
  15.  
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement