How to populate custom tables with rows of data
Looking at this article on WP.org it seems you have to create your database first, with some SQL: function mp_install_table() { global $wpdb; $table_name = $wpdb->prefix . “countries”; $sql = “CREATE TABLE $table_name ( id mediumint(9) NOT NULL AUTO_INCREMENT, name tinytext NOT NULL, labour_cost INT, overheads FLOAT, profits FLOAT );”; require_once( ABSPATH . ‘wp-admin/includes/upgrade.php’ ); … Read more