ECSHOP-index_get_only_article 指定获取1篇文章
/**
* 获得指定栏目文章内容。
*
* @access private
* @return array
*/
function index_get_only_article($cat_aid)
{
$sql = "SELECT title ,content FROM " .$GLOBALS['ecs']->table('article'). " WHERE article_id = ".$cat_aid." LIMIT 1";
$res = $GLOBALS['db']->getAll($sql);
$arr = array();
foreach ($res AS $row)
{
$arr['title'] = $row['title'];
$arr['content'] = $row['content'];
}
return $arr;
}
/**
* 获得指定栏目文章内容。
*
* @access private
* @return array
*/
function index_get_only_article($cat_aid)
{
$sql = "SELECT title ,content FROM " .$GLOBALS['ecs']->table('article'). " WHERE article_id = ".$cat_aid." LIMIT 1";
$res = $GLOBALS['db']->getAll($sql);
$arr = array();
foreach ($res AS $row)
{
$arr['title'] = $row['title'];
$arr['content'] = $row['content'];
}
return $arr;
}
作者:noel@SEO
地址:http://www.laohucheng.com/post/414/
版权所有©转载时必须以链接形式注明作者和原始出处及本声明!
ecshop支持自定义图片和链接的邮件发送方式
ECSHOP前台添加搜索问题功能
2009
11:39
221
0


