Ask the php pdo to find out how it will be blank.

Source: Internet
Author: User
Why is it blank when I use php pdo to query it? I wrote a php file like this: & lt ;? Phprequire ('Inc/pdo. php '); $ lt = $ dbc-& gt; prepare ("& nbsp; select & nbsp; B. subject & nbsp; from & nbsp; pre_for how can I use the pdo of php to query the blank space?
I wrote a php file like this:
 Require ('Inc/pdo. php ');
$ Lt = $ dbc-> prepare ("select B. subject from pre_forum_forum a inner join pre_forum_forum aa on. fid = aa. fup inner join pre_forum_thread B on B. fid = aa. fid where. name = ''");
$ Lt-> execute ();
While ($ row = $ lt-> fetch ()){
Print_r ($ row );
};
?>


Opening the page is blank. I thought it was an error and I changed the SQL statement:
Select * from tablename


This is normal. why? Share To: prepare ("? Select? B. subject? From? Pre _... 'data-pics = '/img/2013/09/27/150106212 .png'>
------ Solution --------------------
From pre_forum_forum
From


A. name = 'Hello'
Character set problems exist.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.