Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- //this is DataBaseCon.php
- class BhowDb {
- var $Con;
- function BhowDb()
- {
- ]
- function connect()
- {
- $ServerName ='localhost' ;
- $UserName='root';
- $PassWord='';
- $Dbname='minifb';
- $this->Con=@mysql_connect($ServerName,$UserName,$PassWord) ;
- mysql_select_db($Dbname, $this->Con);
- }
- }
- ?>
- //this is signup.php
- <?php
- require_once('DataBaseCon.php');
- $db = new BhowDb();
- $db->connect();
- // do your shit here.
- ?>
Add Comment
Please, Sign In to add comment