不同论坛php的一般价格
我有 3 个表 = "forums" | “主题”| “用户” 在“论坛”表中,我有一个名为“价格”的字段 在“主题”表中,我有一个名为“poster_id”的字段 在“用户”表中,我有一个名为“group_id”的字段 三个表中都有字段user_id
每个论坛都有不同的价格,例如forum_id 1,价格0.50 仅当主题中的 poster_id 与用户中的 group_id 兼容时,我才想查询所有主题 例如,只有当用户写的消息是已注册的
查询后,我想向所有已注册的用户呈现他在每个论坛上写的主题数 并按照各论坛的价格执行所有科目的总价。
示例:
注册,在 3 个不同的论坛写了 3 个主题
forum_id 1 = 0.50 $
forum_id 2 = 0.60 $
forum_id 3 = 0.10 $
结果:
username | earn $ 1.20
抱歉我的英语不好,我不是来自美国;)
谢谢!
I have 3 tables = "forums" | "topics" | "users"
In the table "forums" I have a field called "price"
In the table "topics" I have a field called "poster_id"
In the table "users" I have a field called "group_id"
In the three tables have the field user_id
Every forum has a different price, for example forum_id 1, price 0.50
I want to query all of the topics only if the poster_id from topics compatible with group_id in users
For example, only if the user wrote the message is a Registered
After the query, I want to present to all Registered the number of topics that he wrote each forum
And perform general price of all subjects according to the price of every forum.
Example:
Registered, written 3 topics in 3 different forums
forum_id 1 = 0.50 $
forum_id 2 = 0.60 $
forum_id 3 = 0.10 $
Result:
username | earn $ 1.20
sorry about my english, im not from usa ;)
thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
像这样的东西:
Something like this: