Use <? ==> Unable to read data

Source: Internet
Author: User
Use & lt ;?? & Gt; no data can be read Include ("conn. php ");

?>














$ SQL = "select * from message ";$ Query = mysql_query ($ SQL );While ($ row = mysql_fetch_array ($ query )){?> }?>
Title: User:
Content:

No data can be read, You can read the data. why? Cainiao


Reply to discussion (solution)

To enable the short tag function for php 5.4 or lower
Short_open_tag = On

Enable short labels for Wood.

View php. ini
Short_open_tag = on

Enable php short tag

I personally recommend that you do not use short tags, but try to write them completely. if you are not using a server but a space (and the space does not have the short tag function enabled ), you do not have the permission to modify the code. you have to rewrite the code.
The above is for reference only.

Phpinfo ();
?>

Check whether short_open_tag is on. if not ,? Enter php. ini to modify the settings.

Php5.4, whether or not the short_open_tag switch is enabled
Always valid

Although the present are rich, it is not necessary to write = luxury php echo

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.