Empire CMS provides lastdotime (last click timestamp) and lastvotenum (last vote timestamp) fields to record user click time. Viewing methods include: opening the database, searching the ecms_article data table, executing SQL queries (SELECT lastdotime, lastvotenum FROM ecs_article WHERE id = [article ID]), and interpreting the results (the values of lastdotime and lastvotenum are timestamps).
How to view user click time in Empire CMS
Question: How to view user click time in Empire CMS Check user click time in CMS?
Answer:
Empire CMS provides two built-in fields to record user click time:
lastdotime
: Record the timestamp of the last time the user clicked on the article. lastvotenum
: Record the timestamp of the user’s last vote. View method:
Use A database management tool (such as phpMyAdmin) opens the Imperial CMS database.
Find the data table named ecms_article
, which stores article-related data , including click time.
Execute the following SQL query to obtain the user click time:
<code class="sql">SELECT lastdotime, lastvotenum FROM ecs_article WHERE id = [文章ID]</code>
Among them, [Article ID]
should be replaced with the ID of the article to be queried.
The query results will display two values:
lastdotime
: Display the last time the user clicked on the article in timestamp format. lastvotenum
: Displays the time when the user last voted for an article in timestamp format. You can convert these timestamps into a readable format, for example using the following PHP code:
<code class="php">$lastDoTime = strtotime($lastdotime); $lastDoTimeReadable = date('Y-m-d H:i:s', $lastDoTime);</code>
The above is the detailed content of Why can't I see the time the user clicked in Imperial CMS?. For more information, please follow other related articles on the PHP Chinese website!