Home > Article > Backend Development > phpcms2008 if else statement practical application
if else is used in selection judgment. Next, I will introduce the application of phpcms2008 if else. Friends who are interested can refer to it. I hope it will be helpful to you. The help
code is as follows:
<ul class="list3" id=myTab3> {get sql="select * from `phpcms_category` where style = ' b' order by listorder"} <li {if $n == 1} class=active {else} class=normal {/if} onmouseover=nTabs(this,<?php echo $n-1;?>);> {$r[catname]} </li> {/get} </ul> <!-- <li class=active onmouseover=nTabs(this,0);>失眠症</li>
The above is the content of the practical application of phpcms2008 if else statement. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!