Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class DB {
- var $hostname;
- var $username;
- var $password;
- var $database;
- function __Construct() {
- $this->hostname='localhost';
- $this->username='root';
- $this->password='';
- $this->database='new';
- }
- function _connect()
- {
- $conn = mysql_connect ($this->hostname , $this->username , $this->password );
- $db=mysql_select_db ($this->dbname);
- }
- if($conn && $db){
- return true;
- }
- else
- {
- return false;
- }
- }
- ?>
Add Comment
Please, Sign In to add comment