![]() |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
IP: 153.99.28.16
|
|||
|
|||
|
可以,直接用php的语法:
if() { } elseif { } else { } . 实例,如文章有来源,则直接发布,如没有, 就发布文章的作者,如作者也没有, 就发布指定的来源. Code:
<? if($navinfor['befrom']!="") {echo $navinfor[befrom];} elseif($navinfor['writer']!="") {echo $navinfor[writer];} else{echo 'www.xuyinews.com.cn';}?>
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|