How Generate table under database
from:

i made plugin which auto generate database if not exist. same way i want to generate table under generated database. For Example
  • I generate database with codes like ABCD.
  • Now next i want generate DEF table under ABCD database.
I try these codes


function plugin_name_activation() {require_once( ABSPATH . '/wp-admin/includes/upgrade.php' );global $wpdb;$db_table_name = $wpdb->prefix . 'table_name';if( $wpdb->get_var( "SHOW TABLES LIKE '$db_table_name'" ) !=... Code (markup):

How Generate table under database

Poster :
msgh