Step1: Import the CSV File Using PhpMyAdmin

Step2: Import the CSV File into MySQL Using Query :
LOAD DATA INFILE 'c:/tmp/discounts.csv'
INTO TABLE discounts
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 ROWS;Loads the WordPress Default Functions
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require ('./wp-blog-header.php');Step 1 : Login and Logout Condition :
<?php
if ( is_user_logged_in() ) {
echo '<a href="'.wp_logout_url( get_permalink() ).'" title="Logout" class="profile"><input type="button" value="Log out"></a>';
} else {
echo '<a href="'.wp_login_url( get_permalink() ).'" title="Login" class="profile"><input type="button" value="Log in"></a>';
}
?>
Welcome to WordPress. This is your first post. Edit or delete it, then start writing!
<!DOCTYPE html>
<html>
<title>HTML Tutorial</title>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>