Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class DBconn {
- var $host = 'localhost';
- var $user = 'user';
- var $pass = 'password';
- var $db = 'database';
- function connectdb() {
- $conn = @mysqli_connect($this->host, $this->user, $this->pass, $this->db);
- if(!$conn) {
- echo "There has been an error with the application: " . mysqli_error($conn);
- }
- }
- }
Add Comment
Please, Sign In to add comment