Use & lt ;?? & Gt; cannot read data & lt ;? Phpinclude (conn. php); & nbsp ;? & Gt; & lt; table & nbsp; 0 & nbsp; aligncenter & nbsp; cellpadding5 & nbsp; cellspacing1 & nbsp; bgcolor # Use of ad Unable to read data
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
------ Solution --------------------
To enable the short tag function for php 5.4 or lower
Short_open_tag = On
------ Solution --------------------
Enable short labels for Wood.
------ Solution --------------------
View php. ini
Short_open_tag = on
Enable php short tag
------ Solution --------------------
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.
------ Solution --------------------
Phpinfo ();
?>
Check whether the short_open_tag is on. if not, enter php. ini to modify it.
------ Solution --------------------
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