您现在的位置:徳昱鼎 > 新闻知识 >

新闻知识

    $sl_sql,数量:$cs
"; if($cs==""){ $totalNumber = 0; }else{ $totalNumber = $cs; } mysql_free_result($count); $totalPage = ceil($totalNumber/$perNumber); //计算出总页数 if(!isset($page)) { $page = 1; } $startCount = ($page - 1) * $perNumber; //分页开始,更具次方法计算出开始的记录 //常规查询代码,SQL代码最后必须有 limit 开始数量,结束数量; echo "
$totalNumber条记录
"; echo"
"; if($pid == ""){ $sql = "select * from news where typeid in (select id from types where fid=$tid) order by id desc limit $startCount,$perNumber"; }else{ $sql = "select * from news where typeid=$pid limit $startCount,$perNumber"; } $result = mysql_query($sql,$conn); $info = mysql_fetch_array($result); if(!$info){ echo "
  • 很抱歉,没有找到您需要的相关内容!
  • "; }else{ do{ $id = $info['id']; $typeid = $info['typeid']; $title = $info['title']; echo "
  • $title
  • "; }while($info = mysql_fetch_array($result)); } ?>

      Notice: Undefined variable: page in C:\wwwroot\dechi.cn\public_html\class.php on line 106

      Notice: Undefined variable: page in C:\wwwroot\dechi.cn\public_html\class.php on line 108
    • <

    • Notice: Undefined variable: totalPage in C:\wwwroot\dechi.cn\public_html\class.php on line 114

      Notice: Undefined variable: totalPage in C:\wwwroot\dechi.cn\public_html\class.php on line 122

      Notice: Undefined variable: pages in C:\wwwroot\dechi.cn\public_html\class.php on line 122

      Notice: Undefined variable: totalPage in C:\wwwroot\dechi.cn\public_html\class.php on line 128
    • >
    德驰金融
    德驰金融 copyright © www.dechi.cn all right released.沪ICP备11027024号

    Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wwwroot\dechi.cn\public_html\inc\function.php on line 165