Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6850663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:09:09+00:00 2026-05-27T01:09:09+00:00

currently I’m making a forum software, and I’m writing the install script, that sets

  • 0

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!";
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:09:09+00:00Added an answer on May 27, 2026 at 1:09 am

    date is, just like group, a reserved keyword, which you would have seen if you did some error checking.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently we have a hybrid ASP/PHP setup connecting to a SQL Server 2005 database.
Currently, I am writing up a bit of a product-based CMS as my first
Currently, if I want to output a SQL script for a table in my
Currently, I am developing a product that does fairly intensive calculations using MS SQL
Currently am developing a program that solves (if possible) any given labyrinth of dimensions
Currently I have some legacy ASP.NET 2.0 code that uses the ASP Xml web
Currently, I have: <html> <div class=yes1><span><img src=img></span></div> </html> <script> var x = ='yes1' var
currently we have quite a chunky auditing system for objects within our application, the
Currently I have alot of information that are in several different divs. I want
Currently, I am copying a database from my assets folder to the to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.