hxp
2025-06-04 f4a514d5ac952110da846636ecbb9de951eaf3d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
namespace SelectTableInfo;
#´´½¨ÈÕÆÚ£º2012-5-2 ÉÏÎç11:18:00
#×÷Õߣºxcc
include_once '/ProjComm/CommonOperate.php';
include_once '/ProjComm/CfgReader.php';
 
$mongoOpt = NULL;
 
//ͨÓõģ¬ÓÃÓÚ¸ü¾ßÖ¸¶¨Ìõ¼þ²éѯָ¶¨±íµÄÊý¾Ý£¬·µ»ØÓαê
//ʧ°Üʱ·µ»ØNULL
function Comm_Select($section, $table, $findArray)
{
    global $mongoOpt;
    $retArray = NULL;
    if ( $mongoOpt == NULL )
    {
        if ( !\CommonOperate\GetMongoDB( \CfgReader\GetConfigFile(), $section, $mongoOpt ) )
        {
            return $retArray;
        }
    }
    
    $mongoOpt->GetData( $table, $findArray, $retArray );
    return $retArray;
}
 
//²éѯtagDBPlayerÖÐÖ¸¶¨Õ˺ÅÖÐδɾ³ýµÄ½ÇÉ«ÐÅÏ¢£¬·µ»ØÓαê
//ʧ°Üʱ·µ»ØNULL
function Select_tagDBPlayer($server_id, $qid)
{
    //²éѯδɾ³ýµÄÕ˺ţ¬¶ÔÓ¦µÄ½ÇÉ«Êý¾Ý
    $findArray = array("AccID"=>$qid, "IsDeleted"=>0);
    return Comm_Select($server_id, "tagDBPlayer", $findArray);
}
?>