Table 1: admin
Field: id(int11) name(varchvr) password(varchvr)
Table 2: 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 code The code is as follows:
mysql_connect("localhost","root"," ");//Connect to the database
mysql_select_db("lyb");//Select the database
?>
Copy the code The code is as follows:
< html xmlns="http://www.w3.org/1999/xhtml">
$counterFile="conter.xml";
function displayCounter($counterFile){
$fp = fopen($counterFile,"rw");
$num = fgets($fp,5);
$num += 1;
print "