摘要:
/** file: page.class.php 完美分页类 Page */ class Page { private $total; //数据表中总记录数 private $listRows; //每页显示行数 private $limit; //SQL语句使用limit从句,限制获取记录个数 p 阅读全文
摘要:
class DBDA{ public $host="localhost"; public $uid="root"; public $pwd="123"; public $dbname="mydb"; /** *给一个sql语句,返回执行的结果 *@param string $sql 用户指定的sql 阅读全文
摘要:
//建一个连接,造一个连接对象$db = new MySQLi("localhost","root","123","mydb"); //判断是否出错/*if(mysqli_connect_error()){ echo "连接失败!"; exit;}*/ mysqli_connect_error()? 阅读全文
摘要:
加载类:include("./Ren.class.php");include "./Ren.class.php"; require("./Ren.class.php");require "./Ren.class.php"; require_once("./Ren.class.php");requir 阅读全文