Home  >  Article  >  Backend Development  >  在做PHP查询数据库时-该如何解决

在做PHP查询数据库时-该如何解决

WBOY
WBOYOriginal
2016-06-13 12:43:48705browse

在做PHP查询数据库时---
在做PHP查询数据库时,我通过传参得到了一个表里面的ID,请问我如何通过这个ID来显示出这个表里面的某一个字段值;

也可以这样理解:有一个User表,里面的字段有ID,User,Time,Title,我现在知道User里面的ID,我想取出User表里面的Time,Title这两个字段,用mysql数据库查询,应该怎样写语句?????

我们项目经理搞了半天没实现,求高手解决


php
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn