'ip', 'dt' => 0 ), array( 'db' => 'status', 'dt' => 1, 'formatter' => function( $d, $row ) { if($d == 1){ return "Erfolgreich"; }else{ return "Fehlgeschlagen"; } } ), array( 'db' => 'stayloggedin', 'dt' => 2, 'formatter' => function( $d, $row ) { if($d == 1){ return "Ja"; }else{ return "Nein"; } } ), array( 'db' => 'date', 'dt' => 3, 'formatter' => function( $d, $row ) { return getonlydate($d); } ), array( 'db' => 'date', 'dt' => 4, 'formatter' => function( $d, $row ) { return getonlytime($d); } ) ); // SQL server connection information require('../../phpfuncs/connection.php'); $sql_details = array( 'user' => $user, 'pass' => $pw, 'db' => $db, 'host' => $host ); require('ssp.class.php'); //Set the character encoding to UTF-8 echo json_encode( SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns ) ); ?>