Database warning error
-
Hello there,
I am developing the WordPress plugins which following this guide https://codex.wordpress.org/Creating_Tables_with_Plugins to create the custom table for my plugin. In this guide, it’s using the function dbDelta which having this line:
$tablefields = $wpdb->get_results( "DESCRIBE {$table};" );This code must show the database ERROR due to our custom table doesn’t exist. It’s easy to see that by using Query Monitor plugin (https://wordpress.org/plugins/query-monitor/).
Is there any better way to create table without the ERROR message?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Database warning error’ is closed to new replies.