When writing a message board <???> Not used <? Php?> ?

Source: Internet
Author: User
& 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...

Related Article

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.