Your statement
...an IF is terminated by...any command that is not an else or elseif following its closing "}".
helps me to see why I couldn't make it work.
Okay, so is there an "any command" that is more or less "inert"? IOW, I wouldn't want/need the command to do/print/echo anything; I just need some command to function as a "buffer" between distinct if statements. Maybe I could declare a throw-away variable or something like that?
Your alternative coding page offers an intriguing format:
<?php if ($a == 5): ?>
A is equal to 5
<?php endif; ?>
Of this structure, it says:
In the above example, the HTML block "A is equal to 5" is nested within an if statement written in the alternative syntax.
This would seem to have some advantages for what I'm doing:
It would appear that any XHTML between "if" and "endif" could be used without slashing quotes (i.e., href=\"whatever.php\"). This would make a clean break between the PHP and XHTML code. And,
Because of the "endif", it wouldn't seem to require some "inert" buffer command between if statements.
Am I correct on both of these points?
It looks like I'll have to keep reminding myself that my "Learning PHP & MySQL" book is strictly introductory, rather than exhaustive or comprehensive.