<?php
}
?>
###############
# setup.php
# This is the initialization program, only after uploading for the first time, and then must delete to avoid errors
#################
<?php
Require "func.php";
echo "echo "Establish database connection ...ok!<br>";
echo "Set up table Boardinfo ...";
$sql = "CREATE TABLE boardinfo (name varchar NOT NULL, chinesename varchar)";
mysql_query ($sql) or Die ("error");
echo "Ok!<br>";
echo "CREATE table user ...";
$sql = "CREATE TABLE user (id int (one) not NULL auto_increment, name varchar (x) not NULL, sex varchar (6), Realname varchar (2 0), password varchar not NULL, address varchar (a), Oicq varchar (a), homepage varchar (), score Int (one), phone Varc Har, email varchar (m), Regtime varchar, QM text, Slaveboard varchar (x), PRIMARY KEY (ID)) ";
mysql_query ($sql) or Die ("error");
echo "Ok!<br>";
echo "Create a table message ... ";
$sql = "CREATE TABLE message (ID int (one) not NULL auto_increment, name varchar (m), FromName varchar (), Writetime Varch AR, cont longtext, PRIMARY KEY (ID)) ";
mysql_query ($sql) or Die ("error");
echo "Ok!<br>";
echo "Initialize the layout of the PC";
Create_board_table (' computer ', ' personal computer ');
echo "Ok!<br><br>";
echo "echo "<br><br> cold Crazy (computer maniac)";
?>
# # Userinfo.php
<title> User Information </title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<link rel= "stylesheet" type= "Text/css" href= "Css/index.css" >
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service