Can I write an ifelse statement in this way? I was going to embed this piece of code into a php script, but it always prompts an error:
Parse error: syntax error, unexpected T_ELSE in C: \ AppServ \ www \ demo \ templates_c \ 1d7c7a527b6335cc7a623305ca940e1findex. tpl. php on line 14
This is the first block.
This is the third block.
Error message in zend studio
I hope the experts can help me. I hope my younger brother will be in full swing !!! Thank you !!!!!
Reply to discussion (solution)
There's no problem with this section you just gave. are you still using braces?
It feels okay. how do you get this $ status?
In this way, no error is prompted.
There's no problem with this section you just gave. are you still using braces?
Thank you! The problem has been solved. when I print it cyclically, I must write it like the third floor. I cannot separate the right curly braces from the else statement, and it is the same as the elseif statement, if yes, they cannot be separated!
It feels okay. how do you get this $ status?
Thank you! Actually, it should be written like the third floor!
In this way, no error is prompted.
Solution on the third floor !!!!