PAIZAOgro

Untitled

Jun 15th, 2017
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. <?php
  2.     class DB{
  3.         public function conectar(){
  4.             $host="localhost";
  5.             $user="root";
  6.             $pass="vertrigo";
  7.             $dbname="sistemadhl";
  8.            
  9.             $conexao=mysql_connect($host,$user,$pass);
  10.             $selectdb=mysql_select_db($dbname);
  11.            
  12.             return $conexao;
  13.         }
  14.     }
  15.  
  16.  
  17. ?>
Add Comment
Please, Sign In to add comment