"; $accfoldername = substr($tempname, 0, strpos($tempname, '/') ); if ($accfoldername=="shop001") $accfoldername=""; require_once("../config.inc.php"); require_once("../common.inc.php"); $hint = ""; if ($q !== "" ) { $q = strtolower($q); $len=strlen($q); $q=1; $sql="SELECT * FROM deliverycharge WHERE display='1' and id='".$q."' order by sorting, sc_name"; $result=$db->query($sql.$sql_limit); while ( $row=$db->fetch_array($result) ) { if (strtolower($_SESSION['curr'])=="usd") $a = $row["chargeusd"]; if (strtolower($_SESSION['curr'])=="rmb") $a = $row["chargermb"]; $a = $row["charge"]; $hint = $a; $_SESSION['deliveryfee']=$a; } } else $_SESSION['deliveryfee']=0; // Output "no suggestion" if no hint was found or output correct values echo $hint === "" ? "运费另计" : $hint; ?>