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