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; }
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; }