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"]*$_SESSION['currency']; $hint = $a; $_SESSION['deliveryfee']=$a; $_SESSION["ProductDelivery"]=$q; } } else { $_SESSION['deliveryfee']="运费另计"; $_SESSION["ProductDelivery"]="0" ; $hint = 0; } // Output "no suggestion" if no hint was found or output correct values echo $hint === "" ? "运费另计" : $hint; ?>