12 2015 档案
摘要:query($sql);if ($row = $a->fetch_row()) { $totalRecord = $row[0];}//2、计算总页数$pageSize =2;$totalPages=ceil($totalRecord/$pageSize);//$totalPages 表示总页...
阅读全文
摘要:/** * 根据title查询 * @param $id_title * @return array */public function referByTitle($id_title){ $car = array(); $m = 0; $mysql = Conn::getlink(...
阅读全文
摘要://遍历方面 " id="amount" size="1" onblur="checkNum(,this.value)"/...
阅读全文
摘要:'">加入购物车//前端传值$cartId=$_GET['cartId'];include_once"../models/ShopModel.class.php";$add_cart = new ShopModel();$addCart=$add_cart->addToCart($cartId);@...
阅读全文
摘要:include "../tools/Tool.class.php";class ShopModel{ //查看所有 public function getAll(){ $getAll=array(); $a =0; $mysql= Tool::...
阅读全文
摘要:class Tool{ static public function getLink(){ $link = new mysqli('localhost','root','','shop'); if(mysqli_connect_error()) { ...
阅读全文