This is the first time the younger brother wrote an article. I don't know if I can publish it. I write the procedure for you to refer to. If any master can change a better program,
Please don't forget to tell me. :P
Demo page of source program in elong.oso.com.cn/desk/
The first step is to create the database:
Let's take a look at the Oso database as a list.
Log in to the database first. Then at the point of your own database name, just on the left.
Enter the following command at the input command.
CREATE TABLE jpg (
ID Int (8) not NULL auto_increment,
URL char (255) is not NULL,
Mess char (+) not NULL,
FromX char () not NULL,
URL1 char (255) is not NULL,
Mess1 char (+) not NULL,
Fromx1 char () not NULL,
Url2 char (255) is not NULL,
Mess2 char (+) not NULL,
FROMX2 char () not NULL,
Url3 char (255) is not NULL,
MESS3 char (+) not NULL,
Fromx3 char () not NULL,
PRIMARY KEY (ID)
);
CREATE TABLE JPG1 (
ID Int (8) not NULL auto_increment,
URL char (255) is not NULL,
Mess char (+) not NULL,
FromX char () not NULL,
URL1 char (255) is not NULL,
Mess1 char (+) not NULL,
Fromx1 char () not NULL,
Url2 char (255) is not NULL,
Mess2 char (+) not NULL,
FROMX2 char () not NULL,
Url3 char (255) is not NULL,
MESS3 char (+) not NULL,
Fromx3 char () not NULL,
PRIMARY KEY (ID)
);
CREATE TABLE JPG2 (
ID Int (8) not NULL auto_increment,
URL char (255) is not NULL,
Mess char (+) not NULL,
FromX char () not NULL,
URL1 char (255) is not NULL,
Mess1 char (+) not NULL,
Fromx1 char () not NULL,
Url2 char (255) is not NULL,
Mess2 char (+) not NULL,
FROMX2 char () not NULL,
Url3 char (255) is not NULL,
MESS3 char (+) not NULL,
Fromx3 char () not NULL,
PRIMARY KEY (ID)
);
CREATE TABLE jpg3 (
ID Int (8) not NULL auto_increment,
URL char (255) is not NULL,
Mess char (+) not NULL,
FromX char () not NULL,
URL1 char (255) is not NULL,
Mess1 char (+) not NULL,
Fromx1 char () not NULL,
Url2 char (255) is not NULL,
Mess2 char (+) not NULL,
FROMX2 char () not NULL,
Url3 char (255) is not NULL,
MESS3 char (+) not NULL,
Fromx3 char () not NULL,
PRIMARY KEY (ID)
);
CREATE TABLE Jpg4 (
ID Int (8) not NULL auto_increment,
URL char (255) is not NULL,
Mess char (+) not NULL,
FromX char () not NULL,
URL1 char (255) is not NULL,
Mess1 char (+) not NULL,
Fromx1 char () not NULL,
Url2 char (255) is not NULL,
Mess2 char (+) not NULL,
FROMX2 char () not NULL,
Url3 char (255) is not NULL,
MESS3 char (+) not NULL,
Fromx3 char () not NULL,
PRIMARY KEY (ID)
);
These commands mean creating four tables to hold the data. This represents the four classes of a picture. If you want to add classes, you can add more tables and change the source program.
The above describes the creation of the AppleID PHP Desktop Center to create a database, including the creation of appleid aspects of the content, I hope to be interested in the PHP tutorial friends helpful.