/home/mjc1/public_html/j3demo/shop/order_sendcost.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
include_once('./_common.php');

$code $_POST['zipcode'];
if(
$box==''){ $box 1; }

if(!
$code)
    die(
'0');

$sql " select idx, sc_price
            from shop_sendcost
            where sc_zip1 <= 
$code
              and sc_zip2 >= 
$code  order by sc_price desc";
$row sql_fetch($sql,$connect_j3);

if(!
$row['idx'])
    die(
'0');

$row['sc_price'] = preg_replace("/[^0-9]/"""$row['sc_price']);

echo 
$row['sc_price']*$box;

?>