currently I'm making a forum software, and I'm writing the install script, that sets up the database and tables within it. It makes the database and tables fine. It's supposed to make 4 tables: forums, posts, topics, and user_info.
It successfully makes the databse, forums, posts, and topics, but it doesn't create the user_info table, and I can't figure out why.
Here's my code:
$createdb = "CREATE DATABASE forumstest";
$run_createdb = mysql_query("$createdb");
//Create tables
mysql_select_db("forumstest");
$createforums = "CREATE TABLE forums (id int NOT NULL, description text, PRIMARY KEY (id))";
mysql_query("$createforums");
$createposts = "CREATE TABLE posts (id int NOT NULL, created_by varchar(200), date_created date, the_post text, topic_id text, PRIMARY KEY (id))";
mysql_query("$createposts");
$createtopics = "CREATE TABLE topics (id int NOT NULL, title varchar(200), created_by varchar(200), date_created date, forum_id text, PRIMARY KEY (id))";
mysql_query("$createtopics");
$createtopics = "CREATE TABLE user_info (id int NOT NULL, username varchar(25), password varchar(100), name varchar(65), email varchar(65), date date, group text, PRIMARY KEY (id))";
mysql_query("$createtopics");
$dbcreated = 1;
echo "Database created sucessfully!";