Guest User

Untitled

a guest
Apr 22nd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. <?php
  2.     require_once ( "database.php" );
  3.    
  4.     $db = new database ( array ( "host" => "localhost", "name" => "RAC", "user" => "root", "pass" => "..." ), "mysql" );
  5.    
  6.     $db -> setVerbose ( true );
  7.    
  8.     $id2find = 1;
  9.    
  10.     $result = $db -> query ( "SELECT location FROM caravans WHERE id = %u", $id2find );
  11.    
  12.     while ( $row = $db -> getArray ( $result ) )
  13.     {
  14.         echo $row [ 'location' ];
  15.     }
  16.  
  17.     $db -> printLog ( );
  18. ?>
Add Comment
Please, Sign In to add comment