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