Xinglin record (2 ). Member homepage: main. php? Session_start (); start sessionsession_register (userregister); $ userregister $ username; includeclassconfig. php; $ resultmysql_query (SELECT * FROMus member homepage: main. php
Session_start (); // start session
Session_register ("userregister ");
$ Userregister = $ username;
Include "class/config. php ";
$ Result = mysql_query ("SELECT * FROM user where user = '$ username'", $ db );
If (mysql_num_rows ($ result) = 0) {// if the number of returned columns is 0, this document is not provided.
Echo "No such user! ";
Exit ;}
$ Userpsw = strtoupper (trim ($ userpsw ));
$ Password = trim (mysql_result ($ result, 0, 'psw '));
$ Password = strtoupper ($ password); // obtain the password and convert it to uppercase.
$ Userpsw = strtoupper ($ userpsw );
If (! ($ Userpsw = $ password )){
Echo "incorrect password! ";
Mysql_close ($ db );
Exit;
}
$ Name = mysql_result ($ result, 0, "name ");
$ Count = mysql_result ($ result, 0, "count") + 1; // add 1 to the member counter
Mysql_query ("UPDATE user SET count = $ count where user = '$ username'", $ db );
?>
Welcome to Xinglin record
Beijing time |
Echo "Hello,", $ name ,". "; Echo "welcome", $ count, "visit this site. "; ?> |
Record |
Class address book] |
[Data modification] |
[Upload photo] |
[Class photo] |
[Personal photo] |
[Campus scenery] |
[Private message] |
Class message board] |
Class chat room |
[Enter the class chat room] |
Class chat room help] |
Links |
|
|
Xinglin Medical Online |
ChinaRen transcript |
Class Management |
|
Congratulation |
1. welcome to the apricot forest transcript. |
2. if a bug is found, please notify me as soon as possible. |
3. support: webmaster@medguider.51.net |
Latest message |
$ Result = mysql_query ("SELECT * FROM notebook", $ db ); $ Row = mysql_num_rows ($ result ); If ($ row <= 1) {$ x = $ row;} else {$ x = 2 ;} $ Result = mysql_query ("select * from notebook order by time DESC limit 0, $ x", $ db); // read the last two messages For ($ I = 0; $ I <= ($ X-1); $ I ++ ){ $ User = mysql_result ($ result, $ I, 'User '); $ Resulty = mysql_query ("select * from user where user = '$ user'", $ db ); $ Name = mysql_result ($ resulty, 0, 'name '); $ Time = mysql_result ($ result, $ I, 'time '); $ Title = mysql_result ($ result, $ I, 'title '); $ Nnote = mysql_result ($ result, $ I, 'note '); Echo "◆ Contact: $ name time $ time Topic: $ title Content: $ nnote "; } ?> |
|
Whisper |
$ Result = mysql_query ("SELECT * FROM privatenote where touser = '$ userregister'", $ db ); $ Row = mysql_num_rows ($ result); // total number of Whispers $ Unlook = 0; If (! $ Row = 0 ){ For ($ I = 0; $ I <$ row; $ I ++ ){ $ Look = mysql_result ($ result, $ I, 'Look'); // calculates the number of private messages that have not been viewed If ($ look = "0") {$ unlook ++ ;} } } Echo "you have". $ unlook. "New whispers. total". $ row. View whispers "; ?> |
Address Book List |
$ Result = mysql_query ("SELECT * FROM user", $ db ); $ Row = mysql_num_rows ($ result); // Check the number of rows in the result, that is, the number of members. For ($ I = 0; $ I <= ($ row-1); $ I ++ ){ $ Name = mysql_result ($ result, $ I, 'name '); Echo $ name ,","; } Mysql_close ($ db ); ?> |
|
|
★This website has been indexed by Sohu and Sina ★Thanks to leo for providing us with the new animated logo. ★After several days of hard work, I finally used the php and mysql databases to record the new version. Features: users can modify materials online, upload photos, whisper, and oicq portraits. ★5460 there are already 14 Chinese students in our class. ★If you have beautiful scanned personal photos, upload them as soon as possible. |
|
|
|
|
You are
// Total counter
$ Fs = fopen ("class/counter.txt", "r + ");
$ Hit = fgets ($ fs, 10 );
$ Hit + = 1;
Rewind ($ fs );
Fwrite ($ fs, $ hit, 10 );
$ Hit = number_format ($ hit );
Fclose ($ fs );
Echo "$ hit ";
?>
Visitor!
Homepage creation: medical navigation network
Flash is used on this page. if you cannot view it normally, install the flash plug-in.
Why? Session_start (); // start session session_register (userregister); $ userregister = $ username; include class/config. php; $ result = mysql_query (SELECT * FROM us...