table('order_info')."WHERE order_id=". $order_id; $pay_status=$GLOBALS['db']->getOne($sql); if($pay_status == 2){ echo "1"; } else{ echo "2"; } }