Files
firstgarden-web-gnu/shop/ordersendcostcheck.php
2013-02-07 16:56:29 +09:00

14 lines
305 B
PHP

<?php
include_once('./_common.php');
$zipcode = preg_replace("/[^0-9]/", "", $zip);
if(!$zipcode) exit;
$sql = " select sc_amount from {$g4['shop_sendcost_table']} where sc_zip1 <= '$zipcode' and sc_zip2 >= '$zipcode' ";
$row = sql_fetch($sql);
if($row['sc_amount']) {
echo $row['sc_amount'];
}
?>