摘要: query($sql);if ($row = $a->fetch_row()) { $totalRecord = $row[0];}//2、计算总页数$pageSize =2;$totalPages=ceil($totalRecord/$pageSize);//$totalPages 表示总页... 阅读全文
posted @ 2015-12-18 11:12 冰灬两重天 阅读(102) 评论(0) 推荐(0) 编辑
摘要: /** * 根据title查询 * @param $id_title * @return array */public function referByTitle($id_title){ $car = array(); $m = 0; $mysql = Conn::getlink(... 阅读全文
posted @ 2015-12-18 11:11 冰灬两重天 阅读(108) 评论(0) 推荐(0) 编辑
摘要: //遍历方面 " id="amount" size="1" onblur="checkNum(,this.value)"/... 阅读全文
posted @ 2015-12-18 10:54 冰灬两重天 阅读(147) 评论(0) 推荐(0) 编辑
摘要: '">加入购物车//前端传值$cartId=$_GET['cartId'];include_once"../models/ShopModel.class.php";$add_cart = new ShopModel();$addCart=$add_cart->addToCart($cartId);@... 阅读全文
posted @ 2015-12-18 10:50 冰灬两重天 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-12-18 10:04 冰灬两重天 阅读(76) 评论(0) 推荐(0) 编辑
摘要: include "../tools/Tool.class.php";class ShopModel{ //查看所有 public function getAll(){ $getAll=array(); $a =0; $mysql= Tool::... 阅读全文
posted @ 2015-12-18 09:53 冰灬两重天 阅读(115) 评论(0) 推荐(0) 编辑
摘要: class Tool{ static public function getLink(){ $link = new mysqli('localhost','root','','shop'); if(mysqli_connect_error()) { ... 阅读全文
posted @ 2015-12-18 09:52 冰灬两重天 阅读(93) 评论(1) 推荐(0) 编辑