function ship($orderid)
{
$shipping = 0;
$conn = odbc_connect("Driver={Microsoft Access Driver(*.mdb)};Dbq=Database3.mdb", "", "");
$sql = "Select * From pay WHERE order_id=" . $orderid . " AND Field3='Shipping Services'";
$rs = odbc_exec($conn, $sql);
while ($row = odbc_fetch_array($rs)) {
$shipping = $row["Field21"];
}
return $shipping;
}
船舶功能返回运输成本但不起作用。 该表包含订单field3,其中包含3种交易类型:Shipping Services,Refund和Order。该表还包含一个字段顺序ID和一个字段名称成本。
如果特定订单ID为field==Shipping Services
,我需要付费。