& Lt ;?? & Gt; not used & lt ;? Php? & Gt; RT
First, the file containing the database is called,
Require ('dbconnect. php ');
?>
// According to the code in the book
Echo "";
Echo "view messages ";
/////////////////////////
////////////////////////
?>
Then an error occurs when it is displayed ..
The display is the same as the following code without adding php.
Echo "";
Echo "view messages ";
?>
Reply to discussion (solution)
And Essentially the same.
PHP short label format. the default value is disabled. if you need to use this form, set the short_open_tag of the php. ini file to On.
Read the manual first.
Not recommended
RT
First, the file containing the database is called,
Require ('dbconnect. php ');
?>
// According to the code in the book
Echo "";
Echo "view messages ";
/////////////////////////
////////////////////////
?>
Then an error occurs when it is displayed ..
The display is the same as the following code without adding php.
Echo "";
Echo "view messages ";
?>
You have no more than one Normally, it is clear that addition and not addition are acceptable, but the standard method is addition.
This is a sign, not a message board or something...
Then the short tag settings are involved.
In any case, you can write Method
We recommend that you do the same.
You didn't understand what I meant. I know there are several tag methods, <%> Yes, but the addition and not addition have different effects.
An error is prompted when I add php,
Do not add this
Add why the error occurs. paste 15 lines of attachment code to see it.
The source code is not displayed because you have not enabled the short mark function.
"; What does he mean by the error Unexpected "="]? I met it last night. In php, just remove it from the book. Are you sure page_count = 1; not $ page_count? Isn't page $ page? Ah, it's $ page. It cannot be changed. It is estimated that the code is incorrect .. Who can explain how this situation occurs? No. It's just a setup problem. The short tag has been deprecated. we recommend that you do not use it. Recommended
It is estimated that it is an old teaching material, The short tag must be enabled. many servers do not. In addition, It's a pain point. It is recommended to write specifications, . Check whether the short label in PHP. ini is enabled... |