Ask the great God for a question

Source: Internet
Author: User
Ask the great God a question
I want to embed a PHP if statement in the body, which is probably the value of judging session[u_id], this value is different, the output of the content is not the same, and I want to control the format of the output, they are all in the same place, do not know how to write this code, I wrote, unfortunately is wrong, Now send the code up and ask for the guidance of the Great God.
------Solution--------------------
if (Isset ($_seesion[' u_id ')) {
//
if ($_seesion[' u_id ') = = 1) {

}elseif ($_seesion[' u_id ') = = 2) {

}else{

}
}else{
//
}

------Solution--------------------
Each paragraph of output to use the echo output, will not change the words can be pasted code out, do not post pictures.
------Solution--------------------
There is no HTML code in PHP.

if ($_session[' u_id ']!=0) {
if ($_session[' u_id ']==1) {
?>
Drink you, admin Admin Center

Drink your personal Center


  • 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.