require_once('Connections/dingcui.php'); if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? doubleval($theValue) : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } $sort = "D_fas_w_dateY desc, D_fas_w_dateM desc, D_fas_w_dateD desc"; mysqli_select_db($dingcui, $database_dingcui); $sql = "SELECT * FROM D_fas_info where D_fas_ser= '$_GET[D_fas_ser]'"; $result = mysqli_query($dingcui, $sql) or die(mysqli_error()); ?>
法事名稱 | echo "{$data['D_fas_name']}"; ?> | ||
費用 | echo "{$data['D_fas_fee']}"; ?> | ||
法事日期 | if($data['D_fas_w_dateY'] == "2017"){ echo "常設性法事"; } else {echo "{$data['D_fas_w_dateY']}/{$data['D_fas_w_dateM']}/{$data['D_fas_w_dateD']} 陰曆:{$data['D_fas_c_dateM']}月{$data['D_fas_c_dateD']}日";} ?> |
||
法事介紹 | |||
echo "{$data['D_fas_intro']}"; ?> | |||
法事地點 | echo"{$data['D_fas_where']}"; ?> | ||
宣傳頁面 | |||
" target="_blank"> echo "{$data['D_fas_showpage']}"; ?> | |||
付款連結 | |||
" target="_blank"> echo "{$data['D_fas_paypage']}"; ?> | |||
法事在線 | $fas_clsfy= $data['D_fas_clsfy']; if($fas_clsfy == '1'){ echo "上線中"; } else { echo "已下架";} ?> |