Table One: admin
Field: ID (int11) name (VARCHVR) password (VARCHVR)
Table II: LO
Field: ID (int11) Username (VARCHVR) Sex (VARCHVR) QQ (VARCHVR) Email (VARCHVR) info (text) IP (VARCHVR) submit_time (datetime)
1. conn.php (connect database file)
Copy the Code code as follows:
mysql_connect ("localhost", "root", "");//Connect to Database
mysql_select_db ("Lyb");//Select Database
?>
2. header.php (Common header file)
Copy the Code code as follows:
Copy the Code code as follows:
$counterFile = "Conter.xml";
function Displaycounter ($counterFile) {
$fp = fopen ($counterFile, "RW");
$num = Fgets ($fp, 5);
$num + = 1;
Print "Silver Message Board Version 1.0 You are the first". " $num "." Bit of boring silver ";
EXEC ("Rm-rf $counterFile");
EXEC ("echo $num > $counterFile");
}
if (!file_exists ($counterFile)) {
EXEC ("Echo 0 > $counterFile");
}
Displaycounter ($counterFile);
?>
Current 1/4 page 1234 next page
The above on the message board owner message Flash Word from the classic to create a simple php&mysql message board 1th/4 pages, including the message board owner message Flash Word aspects of the content, I hope that the PHP tutorial interested in a friend helpful.