Add php function which is: get_json_from_table($table);
/* $table is the name of the table.
return:
1. Error (if SQL connection fail).
2. Table is not exist (if the table isn't exist).
3. JSON encode which is convert from the imformation of the table.
*/