get_results($sql);
}
/**
* Retrieves keys of the table
* @return void
*/
function ajdt_get_table_Key($table){
global $wpdb;
$sql = "SELECT COLUMN_NAME FROM information_schema.key_column_usage
WHERE table_schema = schema() AND constraint_name = 'PRIMARY' AND table_name = '$table'";
return $wpdb->get_row($sql);
}
/**
* Retrieves keys of the table
* @return void
*/
function ajdt_get_table_columns($table){
global $wpdb;
$sql = "SHOW COLUMNS FROM $table WHERE Extra <> 'auto_increment'";
return $wpdb->get_results($sql);
}
/**
* Checks for wordpress shortcode and renders it based on number of Api List
* Example: [AJDT api="sha1"]
* @return void
*/
function ajdt_render_shortcode(){
?>