Пример #1
0
function getauthorshopbyname($shopname)
{
    $db = new DB_shop();
    $query = "select fd_shop_name as shopname from tb_shop where fd_shop_name like '%{$shopid}%' limit 10";
    $db->query($query);
    $arr_msg = $db->getFiledData(1);
    return $arr_msg;
}
Пример #2
0
function getauthorshop($shopid)
{
    $dbshop = new DB_shop();
    $query = "select fd_shop_name as shopname from tb_shop where fd_shop_id='{$shopid}'";
    $dbshop->query($query);
    $arr_msg = auto_charset($dbshop->getFiledData(''), 'gbk', 'utf-8');
    return $arr_msg;
}