js/main.js
/**
 * Question 1: Select all columns 
 * Sample: SELECT * FROM tbl_name
 */
Question 1: Select all columns
Sample: SELECT * FROM tbl_name
Question 1 : Select all columns Sample : SELECT * FROM tbl_name
function Question1() {
    var cache = Cookies.get('Question-1')
    if (typeof cache === 'undefined') {
        var tbl_name = getTables(1)
        var Q = 'Select everything from the table <em>' + tbl_name + '</em>'
        var A = 'SELECT * FROM `' + tbl_name + '`'
        cache = {
            Question: Q,
            Answer: A
        }
        var encodedString = Base64.encode(JSON.stringify(cache))
        Cookies.set("Question-1", encodedString)
    } else {
        cache = JSON.parse(Base64.decode(cache))
    }
    return cache.Question
}
function Question1 ( ) { var cache = Cookies . get ( 'Question-1' ) if ( typeof cache === 'undefined' ) { var tbl_name = getTables ( 1 ) var Q = 'Select everything from the table <em>' + tbl_name + '</em>' var A = 'SELECT * FROM `' + tbl_name + '`' cache = { Question : Q , Answer : A } var encodedString = Base64 . encode ( JSON . stringify ( cache ) ) Cookies . set ( "Question-1" , encodedString ) } else { cache = JSON . parse ( Base64 . decode ( cache ) ) } return cache . Question }
Question 1: Select all columns
 Sample: SELECT * FROM tbl_name
Question 1 : Select all columns Sample : SELECT * FROM tbl_name
//check if we have a stored version already saved? if not make one...
 //set the cache
 // Encode the String
