Exemplo n.º 1
0
function getNameByIm($im)
{
    $db_uch = new dbstuff();
    $db_uch->charset = dbcharset;
    $db_uch->connect(dbhost, dbuser, dbpw, dbname, pconnect);
    $imname = $db_uch->result($db_uch->query("SELECT username FROM " . tname("spacefield") . " s," . tname("member") . " m WHERE s.uid=m.uid and s.qq='{$im}'"), 0);
    if (empty($imname)) {
        return "0";
    } else {
        return mb_convert_encoding($imname, "utf-8", "gbk");
    }
    $db_uch->close();
}
Exemplo n.º 2
0
 function close()
 {
     $this->rdb->close();
     return dbstuff::close();
 }