如何在php中提取用户数据 [英] How do I Pull out user data in php

查看:89
本文介绍了如何在php中提取用户数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站有点像社交媒体网站,我可以为用户提取信息,例如年龄,州,姓名,ECT。并将它显示给他们。



但我需要知道的是如何提取保存的数据/用户数据,如帖子,特定内容(适用于用户的内容),ECT。

我该怎么做? 我是否需要存储在我的sql数据库中的信息?

解决方案

你如何拉它取决于你如何存储它。这一切都应该由您的应用程序定义。由于数据库的事务性属性,首先将它全部存储在数据库中是个好主意。但原则上,它可以在服务器部分的某些文件中存储您需要的所有内容。我不建议这样做:基于对多处理的良好理解,需要采取过于严格的预防措施。



-SA

I have a website that is kind of like a social media site I can pull out info for the user such as age, state, name, ECT. and display it to them.

But what I need to know is how do I pull out like saved data/User data such as Posts, Specific content (Appropriate content For the user), ECT.
How do I do this? Do I need that info stored on my sql database?

解决方案

How you "pull" it depends on how you store it. It's all should be defined by your application. It's a good idea to store it all in the database, first of all, due to the transactional properties of databases. But it is, in principle, possible to store all you need in some files on the server part. I would not advise to go that way: it would need too serious precautions based on good understanding of multiprocessing.

—SA


这篇关于如何在php中提取用户数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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