[請益] 符合多個條件 就顯示圖片
大家好
$row = "(2S)-2-Methylacyl-CoA" ;
$r1 = similar_text($keyword,$row,$r2);{
if ( ereg ("(.+)ane(.+)", $keyword ) )
if ($r2>$simile) ;
?> <table width="200" border="1">
<tr><td> Catalysis Enzyme:phosphoglucose mutase </td></tr>
<tr><td><P ALIGN="center"><IMG SRC="(2S)-2-Methylacyl-CoA
2-epimerase@ (2S)-2-Methylacyl-CoA.gif"></P>;</td></tr>
</table><?php }
條件一 ;if ( ereg ("(.+)ane(.+)", $keyword ) )
條件二 ;if ($r2>$simile)
顯示圖片;<table width="200" border="1">
<tr><td> Catalysis Enzyme:phosphoglucose mutase </td></tr>
<tr><td><P ALIGN="center"><IMG SRC="(2S)-2-Methylacyl-CoA
2-epimerase@ (2S)-2-Methylacyl-CoA.gif"></P>;</td></tr>
</table>
小弟希望我輸入的東西 當符合一跟二時 就顯示圖片 可是
一直沒辦法 想請問大大 我該怎麼做呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.114.100.144
推
04/18 21:13, , 1F
04/18 21:13, 1F
→
04/18 22:55, , 2F
04/18 22:55, 2F
→
04/20 12:17, , 3F
04/20 12:17, 3F
PHP 近期熱門文章
PTT數位生活區 即時熱門文章