Senior students use PHP to do what recent visitors do and make code clear. I am stupid.
Source: Internet
Author: User
What do senior students use PHP to do with recent visitors? Make it clear by sending some code. I am stupid, senior students. how do I use PHP as a visitor recently? I am stupid to make code clear. I can use a data table to save the visitor and query the visitor !, When login is used, the hacker's information is stored and displayed in chronological order. what do senior students use PHP to do with recent visitors? I am stupid to make code clear.
What do senior students use PHP to do with recent visitors? I am stupid to make code clear.
------ Solution --------------------
Save the visitor with the data table, and you will know how to pull the query!
------ Solution --------------------
When login is used, the user's information is saved.
The display time is sorted by time.
------ Solution --------------------
When asking for information, save the customer's information
The display time is sorted by time.
------ Solution --------------------
It is best to store a table in the database,
------ Solution --------------------
There must be a table dedicated to saving the Visitor's Information
------ Solution --------------------
First, create a visitor table.
Create table visitorinfo (
Id bignit (10) primary key auto_increment,
Time varchar (10) not null, // access time
F_id int (10) not null, // accessed id
U_id int (10) not null // the visitor's id can be obtained from the session.
) ENGING = MyISAM; CHARSET = GBK;
After you log on, you can put the login information in the session. when you need to obtain all the visitor information, you can use one SQL statement. you can check the two tables with user visitorinfo. For reference.
------ Solution --------------------
1. create a table. Field: id, name,
2. when a user logs in, the user name is written to the database.
3. when another user logs in, the name in the table is displayed as limite.
------ Solution --------------------
You can use either XML or TXT text, but I won't write
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.