Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class DB {
- //Database connection
- public static $conn;
- /**
- * Connect to the database
- *
- * @return bool false on failure
- */
- public function connect() {
- //Try and connect to the database
- $host = 'helios.csesalford.com';
- $user = 'stc885';
- $pass = 'iv9bBshl2';
- $db = 'stc885';
- $conn = new mysqli($host,$user,$pass,$db);
- return $conn;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement