现在位置: 首页 > php > ecshop+ectouch > 文章
+0°
2015年02月28日 ecshop+ectouch ⁄ 共 943字
在include/lib_goods.php文件下面新增: function getads($cat,$num) {  $time = gmtime(); $sql = "SELECT * FROM " . $GLOBALS['ecs']->table('ad') . " where position_id=".$cat." and  start_time <= '" . $time . "' AND end_time >= '" . $time . "' ORDER BY ad_id desc limit ".$num; $res = $GLOBALS['db']->getAll($sql);    $arr = array(); ...
阅读全文
×