Files
firstgarden-web-gnu/shop/ordersendcost.php
2013-09-13 16:23:29 +09:00

19 lines
330 B
PHP

<?php
include_once('./_common.php');
$code = $_POST['zipcode'];
if(!$code)
die('0');
$sql = " select sc_id, sc_price
from {$g5['g5_shop_sendcost_table']}
where sc_zip1 <= $code
and sc_zip2 >= $code ";
$row = sql_fetch($sql);
if(!$row['sc_id'])
die('0');
die($row['sc_price']);
?>