2009年7月24日 星期五

如果...,就...

今天主要研究這個東西。

如:
1. 如果reSP資料集中的欄位volume有資料,則顯示"volume"
<?php if ($row_rsSP['volume'] > 0) { // Show if recordset not empty ?>
volume
<?php } // Show if recordset not empty ?>


2. 如果reSP資料集中的欄位Endemin的值為"Yes",則顯示"Endemic"
<p><?php if ($row_rsSP['Endemic'] == "Yes") { // Show if recordset not empty ?>
Endemic
<?php } // Show if recordset not empty ?></p>


其實很簡單的,只是花了一點時間才搞懂。原本以為可能得去認真學PHP,沒想到,哈,就被我試出來了。(得意~~)

因為有一個欄位的組合就得要寫很多這種判斷式阿。希望真能成功完成。

----

今天已經跟老師說好我要來弄這個網站的事了。加油。

1 則留言:

  1. 2019 ford edge titanium for sale
    2019 ford edge 2020 edge titanium titanium for sale titanium watch · Pre-owned, Refurbished. titanium exhaust tips · 라이브스코어 Vintage, Custom Made, Vintage, titanium ingot Low End, Custom Made,

    回覆刪除