Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // DB table to use
- $table = 'distributor';
- // Table's primary key
- $primaryKey = 'id';
- $columns = array(
- array( 'db' => 'name', 'dt' => 0 ),
- );
- // SQL server connection information
- $sql_details = array(
- 'user' => 'root',
- 'pass' => 'stackoverflow',
- 'db' => 'stackoverflow',
- 'host' => 'localhost'
- );
- require( 'ssp.class.php' );
- echo json_encode(
- SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns )
- );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement