Guest User

Untitled

a guest
Apr 27th, 2017
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.64 KB | None | 0 0
  1. <?php
  2.  
  3. class Access {
  4.  
  5.     $banco = "dbcliente";
  6.     $pass = "s3nh@1234";
  7.     $user = "Sou@dmyn100";
  8.     $host = "https://phpmyadmin.locaweb.com.br/";
  9.     $table = "cliente";
  10.    
  11.     var $connection;
  12.    
  13.    
  14.     function dbConnect() {
  15.        
  16.         $this->connection = @mysqli_connect($this->host,$this->user,$this->pass,$this->banco);
  17.        
  18.         if( ! $this->connection ) {
  19.            
  20.             die( "Problemas com a conexão." );
  21.            
  22.         }
  23.        
  24.     }
  25.        
  26.     function dbClose() {
  27.        
  28.         return mysqli_close($this->connection);
  29.        
  30.     }
  31.    
  32.    
  33.    
  34. }
  35.  
  36. ?>
Add Comment
Please, Sign In to add comment