Add the CREATE TABLE query statement into the SQL tab in phpMyAdmin.

It]s not necessary to write your SQL keywords in all capital letters, but doing so helps to distinguish the SQL terms from the table and column names. NOT NULL makes the fields required.

***********************************
PAGE 357 - Create the table

CREATE TABLE entries (
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(100) NOT NULL,
entry TEXT NOT NULL,
date_entered DATETIME NOT NULL
) CHARACTER SET utf8;

**************************************************

Here is what your mysqli_connect.php file will look like:

<?php 

/*Script 12.2 - mysqli_connect.php
Your Name Goes Here

This file contains the database access information.
This file also establishes a connection to MySQL.
*/

/*Can only have one connection open at a time. Comment out the school conection while working locally.*/

/* This information is for the school: 
DEFINE ('DB_HOST', 'localhost');
DEFINE ('DB_USER', 'phpstuXX'); //replace with YOUR username
DEFINE ('DB_PASSWORD', 'password'); //replace with YOUR password
DEFINE ('DB_NAME', 'myblogXX'); //replace with YOUR myblog database number
*/

/*Comment out your local connection BEFORE you upload to the school server. */
DEFINE ('DB_HOST', 'localhost');
DEFINE ('DB_USER', 'root');
DEFINE ('DB_PASSWORD', ''); //If using a MAC computer your password is root.
DEFINE ('DB_NAME', 'myblogXX'); //replace with your myblog database number

//Make the connection:
if ($dbc = @mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) ) {

/* Comment this out this entire IF statement AFTER you create a DB connection OR this message will output on all of your files and then your database will immediately close. */
	
	print '<p style="color:red;">You have successfully connected to MySQL.';	
	
	} else {
		print '<p style="color:red;">' . die('Could not connect to MySQL: ' 
		. mysqli_connect_error() ) . '</p>';
	} //die function terminates the execution of the script
	
	//Set the character encoding of the data to follow
	mysqli_set_charset($dbc, 'utf8');