满分请教高手这段代码哪里有问题啊,高分跪求了 本帖最后由 jdalove 于 2011-07-05 10:38:16 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 没有 hotel_common::get_hotel_sowntown 的代码,也没有功能说明,很难给出有益的建议 这是get_hotel_sowntown static public function get_hotel_sowntown($sowntownids=''){ $sowntownids = trim($sowntownids,','); if (empty($sowntownids)) { return false; } $Cache_Lite = MemoryCache::getInstance(); $Cache_key = md5('get_hotel_sowntown_'.$sowntownids); if(!$return = $Cache_Lite->get($Cache_key)){ $return = array(); $db = DB_MySQLi::getInstance(1); $sql = 'select sowntown_id,sowntown_name,sowntown_eng_name from city_sowntown where sowntown_id in ('.$sowntownids.')'; $dbre = $db->query($sql); while ($row = $db->fetchRow_ASSOCS()) { //$return[$row['sowntown_id']]=$row['sowntown_name']; $return[$row['sowntown_id']]=$row; } $Cache_Lite->set($Cache_key,$return,hotel_config_const::$cache_expire['1h']); } return $return; } 新人请教一个smarty问题 PHP调用外部命令 php对像转字符的问题,在线等 想在网站中加上统计访问来源,访问量等信息的功能,不知是否会对服务器带来很大压力,牛人指点,谢谢! 父与子之间的查询问题 PHP统计(求和)问题,希望大家可以帮我一下,如果你们愿意就当作生日礼物送给我吧,谢谢! 哪位CSDN兄弟能给看看我的留言本为啥注册后进不去? 各位大哥,这次的问题非同小可哦!!!!!! 请问如何将html中的控件灰掉,即使其disable? google翻译代码调用 一个关于session的问题,急急急 为什么 看了半天的PHP还是不懂啥的
$sowntownids = trim($sowntownids,',');
if (empty($sowntownids)) {
return false;
}
$Cache_Lite = MemoryCache::getInstance();
$Cache_key = md5('get_hotel_sowntown_'.$sowntownids);
if(!$return = $Cache_Lite->get($Cache_key)){
$return = array();
$db = DB_MySQLi::getInstance(1);
$sql = 'select sowntown_id,sowntown_name,sowntown_eng_name from city_sowntown where sowntown_id in ('.$sowntownids.')';
$dbre = $db->query($sql);
while ($row = $db->fetchRow_ASSOCS()) {
//$return[$row['sowntown_id']]=$row['sowntown_name'];
$return[$row['sowntown_id']]=$row;
}
$Cache_Lite->set($Cache_key,$return,hotel_config_const::$cache_expire['1h']);
}
return $return;
}