Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once ( "database.php" );
- $db = new database ( array ( "host" => "localhost", "name" => "RAC", "user" => "root", "pass" => "..." ), "mysql" );
- $db -> setVerbose ( true );
- $id2find = 1;
- $result = $db -> query ( "SELECT location FROM caravans WHERE id = %u", $id2find );
- while ( $row = $db -> getArray ( $result ) )
- {
- echo $row [ 'location' ];
- }
- $db -> printLog ( );
- ?>
Add Comment
Please, Sign In to add comment