// 获取待支付记录的详细信息 $r_pending = $empire->fetch1("select id, payddno from {$dbtbpre}enewspayrecordst where id=" . $id . do_dblimit_one()); if ($r_pending['id']) { // 使用订单号去查询已支付记录表 $r = $empire->fetch1("select id,payddno from {$dbtbpre}enewspayrecord where payddno='" . $r_pending['payddno'] . "'" . do_dblimit_one()); } $havepay = 0; if ($r['id']) { $havepay = 1; }
|