Guest User

Untitled

a guest
May 10th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <?
  2. //this is DataBaseCon.php
  3. class BhowDb {
  4. var $Con;
  5.  
  6. function BhowDb()
  7. {
  8. ]
  9.  
  10. function connect()
  11. {
  12. $ServerName ='localhost' ;
  13. $UserName='root';
  14. $PassWord='';
  15. $Dbname='minifb';
  16.  
  17. $this->Con=@mysql_connect($ServerName,$UserName,$PassWord) ;
  18. mysql_select_db($Dbname, $this->Con);
  19. }
  20. }
  21. ?>
  22.  
  23.  
  24. //this is signup.php
  25. <?php
  26. require_once('DataBaseCon.php');
  27.  
  28. $db = new BhowDb();
  29. $db->connect();
  30.  
  31. // do your shit here.
  32. ?>
Add Comment
Please, Sign In to add comment