Using <=?> to read data, what to do with it

Source: Internet
Author: User
Use I can't read the data.
Include ("conn.php");

?>














$sql = "SELECT * from Message", $query =mysql_query ($sql), while ($row =mysql_fetch_array ($query)) {?> }?>
Title: User:
Content:

The data cannot be read, but You can read the data, why? Rookie ask for advice
------Solution--------------------
PHP 5.4 Need to turn on the short mark function
Short_open_tag = On
------Solution--------------------
Wood has open short label support.
------Solution--------------------
View PHP.ini
Short_open_tag = On

Open PHP Short Tag

------Solution--------------------
Personal suggestions do not use short label, or try to write completely, if one day you do not use the server, but space (and space does not open a short label function), you do not have permission to modify these, the code has to rewrite
The above is for reference only
------Solution--------------------
Phpinfo ();
?>

See if Short_open_tag is on, and if not, enter php.ini to modify it.
------Solution--------------------
php5.4 start, regardless of whether the short_open_tag switch is open
Always works.

Although the people are very rich now, but also do not have to put = luxury writing 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.