查询广告
$sql="select ad_name,ad_http,ad_pic1,ad_text from ".$db_web_ad." where ad_id=4 or ad_id=5 or ad_id=6";
$db->query($sql);
while($db->Next_Record()){
?>
查询栏目表
$sql="select title_id,title_name,remark from ".$db_web_title." where title_id=2";
$db->query($sql);
$db->Next_Record();{
?>
广告查询 简易:
$ls_ad_id=2;include('syd/php/index/index_gg.php');?>
查询分类
$sql="select type_id,type_name from ".$db_put_ptype." order by type_id";
$db->query($sql);
while($db->next_Record()){ ?>
查询 新闻
$sql=" select title,update_time,auto_id,file_remark,is_top,first_picurl from ".$db_web_file." where title_id=4 "."order by auto_id desc"."limit 0,4";
$db->query($sql);
while($db->Next_Record()){
?>
//新闻链接 字符 file.php?tt_id=4&ts_id=22
循环查询新闻
$sql = "select title,auto_id,update_time from syd_title_con where title_id=9 order by auto_id desc limit 6";
$db->query($sql);
while($db->next_Record()){
$id = $db->Record['auto_id'];
$title = $db->Record['title'];
$time = substr($db->Record['update_time'],0,-6);
?>
{this.value = '';}"
查询产品
$sql=" select product_name,product_id,smallpic from ".$db_put_product." where enable=1 "
." order by product_id DESC limit 0,10";
$db->query($sql);
$ls_row=5;
$i=0;
while($db->next_Record()){
if($i==0){
echo '
echo $db->Record['product_name']?>
echo $db->Record['product_name']?>