Skip to content

Instantly share code, notes, and snippets.

@lehrblogger
Created November 4, 2008 04:56
Show Gist options
  • Save lehrblogger/22082 to your computer and use it in GitHub Desktop.
Save lehrblogger/22082 to your computer and use it in GitHub Desktop.
<?php
require('keyboardLogin.php');
// show all errors
ini_set('display_errors', true);
ini_set('display_startup_errors', true);
error_reporting( E_ALL );
dbConnect();
$query = "SELECT * from keyboard.keys"
$result = dbQuery( $query );
dbClose();
echo json_encode($result);
?>
function init() {
var req = new Request.JSON({
url: "getTable.php",
method: 'get',
onComplete: function(jsonObj){
console.log(jsonObj);
}
}).send();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment