Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?PHP
- $MysqlHost = "localhost";
- $MysqlUsername = "root";
- $MysqlPassword = "";
- mysql_connect($Mysqlhost, $MysqlUsername, $MysqlPassword) or die(mysql_error());
- mysql_select_db("socialking") or die(mysql_error());
- $Query = "CREATE TABLE sitestats(
- id INT NOT NULL AUTO_INCREMENT,
- PRIMARY KEY(id)
- )";
- mysql_query($Query) or die(mysql_error());
- echo "Site stats table created!";
- // Not even sure if a dedicated user table is going to be necessary -
- // there mig
- $Query = "CREATE TABLE users(
- id INT NOT NULL AUTO_INCREMENT,
- PRIMARY KEY(id)
- )";
- mysql_query($Query) or die (mysql_error());
- echo "Users table created!";
- $Query = "CREATE TABLE pastkings(
- id INT NOT NULL AUTO_INCREMENT,
- name VARCHAR(40)
- )";
- ?>
Add Comment
Please, Sign In to add comment