Home  >  Article  >  Backend Development  >  请教使用php的pdo查询出来如何会是空白

请教使用php的pdo查询出来如何会是空白

WBOY
WBOYOriginal
2016-06-13 12:37:07743browse

请问使用php的pdo查询出来怎么会是空白?
我有一个php是这样写的:


require('inc/pdo.php');
$lt=$dbc->prepare(" select b.subject from pre_forum_forum a inner join pre_forum_forum aa on a.fid=aa.fup inner join pre_forum_thread b on b.fid=aa.fid where a.name='你好'");
$lt->execute();
while($row=$lt->fetch()){
print_r($row);
};
?>


打开页面是一片空白,本以为是写错了,就换了一个sql语句:
select * from tablename 


这样就正常,请教大神这是为什么?

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