Advertisement
Guest User

Untitled

a guest
Jun 2nd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1. <?php
  2.    
  3.     // _r!J_5p2de9V
  4.    
  5.     class sSQL{
  6.        
  7.         private $dbhost = "localhost";
  8.         private $dbuser = "smitteh_review";
  9.         private $dbpass = "_r!J_5p2de9V";
  10.         private $dbname = "smitteh_review";
  11.        
  12.         function Query( $query )
  13.         {
  14.             mysql_connect( $this->dbhost, $this->dbname, $this->dbpass ) or die( mysql_error() );
  15.             mysql_select_db( $this->dbname ) or die( mysql_error() );  
  16.            
  17.             return mysql_query( $query );
  18.         }
  19.        
  20.         function CreateTable( $name, $table )
  21.         {
  22.             $this->Query( "CREATE TABLE $name ( $table )" );
  23.         }
  24.        
  25.     }
  26.    
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement