这样写出错,">
输入banner图图片脚本导航/分类

discuz想在门户首页自定SQL读取数据库信息,该如何操作

discuz 想在门户首页自定SQL读取数据库信息,该怎么操作?

$query = DB::query("SELECT * FROM ".DB::table('common_advertisement').";");
while($rs = DB::fetch($query)) {
$code=$rs['code'];
}
?>


这样写出错,要引入SQL链接语句吗?


------解决方案--------------------
不要加分号;