摘要: 1 mysqli = new mysqli(self::$host,self::$root,self::$password,self::$dbname);21 if ($this->mysqli->connect_error) {22 # c... 阅读全文
posted @ 2015-01-05 23:12 人间最美二月天 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 1 代码: 2 //1.得到mysqli连接 3 header("Content-type: text/html;charset=utf-8"); 4 $mysqli=mysqli_connect("localhost","root","root","test"); 5... 阅读全文
posted @ 2015-01-05 21:36 人间最美二月天 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 1 connect_error);10 }11 //2.操作数据库12 $sql = "select * from user";13 $res = $mysqli->query($sql);14 // var_dump($res);15 //3.处理... 阅读全文
posted @ 2015-01-05 16:20 人间最美二月天 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 轮播器 6 74 117 118 119 120 121 <122 >123 图片正在加载~~ 124 请稍后~~125 126 127 128 阅读全文
posted @ 2015-01-05 11:17 人间最美二月天 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 1 ";15 for ($i=0; $i $file_name";19 }20 echo "";21 22 // echo "";23 //取出行信息24 while ($row = mysql_fet... 阅读全文
posted @ 2015-01-05 10:51 人间最美二月天 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 1 conn = mysql_connect($this->host,$this->root,$this->password) or die('连接数据库失败'.mysql_error());21 mysql_select_db($this->dbname);22 ... 阅读全文
posted @ 2015-01-05 09:25 人间最美二月天 阅读(374) 评论(0) 推荐(0) 编辑