<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
G:\xampp\htdocs\wordpress4\wp-content\plugins\ecommerce\function\index.php
<?php
/**
* Plugin Name: ecommerce
* Plugin URI: http://mypluginuri.com/
* Description: A brief description about your plugin.
* Version: 1.0 or whatever version of the plugin (pretty self explanatory)
* Author: ecommerce
* Author URI: Author's website
* License: A "Slug" license name e.g. GPL12
*/
function database_creation(){
global $wpdb;
$car_details = $wpdb->prefix. 'ecommerce_car_details';
$charset = $wpdb->get_charset_collate;
$car_det = "CREATE TABLE". $car_details. "(
car_ID int NOT NULL,
title text,
price int,
PRIMARY KEY (car_ID)
) $charset;";
require_once(ABSPATH. 'wp-admin/includes/upgrade.php');
dbDelta($car_det);
}
register_activation_hook(__FILE__, 'database_creation');