Answer the question
In order to leave comments, you need to log in
How to check if a table exists in mysql database?
Komrades, advise the most efficient and correct way to check the existence of a table
$wpdb->prefix . termmeta
Answer the question
In order to leave comments, you need to log in
$wpdb->get_var("tableName")
if ( $wpdb->get_var("show tables like '".$table."'") != $table ) {
Create table;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question