从表格和行显示的记录 [英] coun record from table and display in row wise

查看:101
本文介绍了从表格和行显示的记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,早上好。

i想要根据观众发送的回复数量和观看时间来统计记录。

所以逻辑和语法必须使用。

sir goodmorning
i wants to count record according to how much reply send by viewer and how much time views.
so what logic and syntax have to use.

推荐答案

您好,


您是否指定了有关您的要求的更多详细信息。您想要计算访问该页面的用户数量以及查看者发送回复的含义是什么?

Hi,

Do you specify the more details about your requirement. Do you want to count how many users visited the page and what is the meaning of reply send by viewer?


sir goodmorning

i想要根据观众发送的回复数量和观看时间来统计记录。 />
所以必须使用什么逻辑和语法。
sir goodmorning
i wants to count record according to how much reply send by viewer and how much time views.
so what logic and syntax have to use.


感谢您的回复

i想要计算用户阅读主题的数量以及是否有任何用户回复主题然后如何许多回复关于那个话题。

i想要在计数后显示其行中的fild
thanks for taking response
i wants to count the how much user read the topic and if any user reply on topic then how many reply on that topic .
i wants to display both fild on page in its row after count





这取决于您如何完成页面编码以及表格结构。


一种方法是做所需的功能


该表包含与用户阅读和回复的主题相关的信息,你可以在其中添加两个字段,一个用于存储读取该主题的用户的信息,另一个用于存储没有回复该主题的用户。

因此每次用户点击时该主题的链接,从数据库中检索最后一个ReadCount,将其递增1并将该值存储到数据库中。

以类似的方式,在用户回复主题后将记录插入表中,增加数据库中的ReplyCount并更新表格。


希望这样会有所帮助。
Hi,

It depends on how you have done the coding of the page and also on your table structure.

One way is to do the required functionality is

The table which is containing information related to topics which users read and reply , you can add two more fields into it , one to store the information for no of users who read the topic and other to store no of users who replied to the topic.
So each time , when user will click on the link for that topic , retrieve last ReadCount from the db , increment it by one and store that value into database.
In a similar way , after inserting the record into table when user replies for the topic , increment the ReplyCount in database and update the table.


Hope so this will help.


这篇关于从表格和行显示的记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆