2016年11月3日

投票 页的做法 重点——学会进度条!!

摘要: 无标题文档 query($sql); $attr = $result->fetch_all(); foreach($attr as $v) { echo "{$v[1]}"; $sxx = "select * from diaoyanxuanxiang where timudaihao='{$v[0]}'"; $rxx = $... 阅读全文

posted @ 2016-11-03 22:58 奔跑的葛根 阅读(270) 评论(0) 推荐(0) 编辑

分页

摘要: 无标题文档 代号 区域名称 父级代号 Query($szong); $zongshu=$azong[0][0];//总条数 //造分页对象 $page=new Page($zongshu,20); //在 SQL语句拼接分页条件 $sql="select * from chinastates ".$page->limit; $attr=$... 阅读全文

posted @ 2016-11-03 22:56 奔跑的葛根 阅读(143) 评论(0) 推荐(0) 编辑

封装 类

摘要: host,$this->uid,$this->pwd,$this->dbname); //执行sql语句 $reslut = $db->query($sql); //从结果集对象里面取数据 if($type==1) { return $reslut->fet... 阅读全文

posted @ 2016-11-03 22:54 奔跑的葛根 阅读(130) 评论(0) 推荐(0) 编辑

导航