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

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

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

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

<?php<br />
require('inc/pdo.php');<br />
$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='你好'");<br />
$lt->execute();<br />
while($row=$lt->fetch()){<br />
print_r($row);<br />
};<br />
?>


打开页面是一片空白,本以为是写错了,就换了一个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