global $wpdb;
$table = $wpdb->prefix . "byline_data_nw";
if($wpdb->get_var("SHOW TABLES LIKE '$table'") != $table) {
echo 'Table not exist<br>';
}else{
echo 'table exist<br>';
$delete = $wpdb->query("TRUNCATE TABLE $table");
}
Jagdish Sarma Asked question March 18, 2023