Jump to content

[SOLVED] Database help


php?

Recommended Posts

Theres a guide i'm reading that says to create a database, then it gives me some code and stops. I'm wondering what i would name the database from this code provided:

 

CREATE TABLE `users` (
  `ID` int(11) NOT NULL auto_increment,
  `Username` varchar(255) NOT NULL,
  `Password` varchar(255) NOT NULL,
  `Temp_pass` varchar(55) default NULL,
  `Temp_pass_active` tinyint(1) NOT NULL default '0',
  `Email` varchar(255) NOT NULL,
  `Active` int(11) NOT NULL default '0',
  `Level_access` int(11) NOT NULL default '2',
  `Random_key` varchar(32) default NULL,
  PRIMARY KEY  (`ID`),
  UNIQUE KEY `Username` (`Username`),
  UNIQUE KEY `Email` (`Email`)
) ENGINE=MyISAM;

Link to comment
https://forums.phpfreaks.com/topic/83813-solved-database-help/
Share on other sites

you must first create a database

 

Then create the tables for the database

 

if your using a hosting service you can create the database through them if you have an account that allows your ability to create the database.

 

Then you can use the code you noted in your posting to create the table.  The code you show above will create a table called 'users'

Link to comment
https://forums.phpfreaks.com/topic/83813-solved-database-help/#findComment-427093
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.