摘要: 阅读全文
posted @ 2014-07-02 15:32 Crawford 阅读(163) 评论(0) 推荐(0) 编辑
摘要: PHP 输出json。 $result = mysql_query($sql); //查询结果 $users=array(); $i=0; while($row=mysql_fetch_array($result,MYSQL_ASSOC)){ $users[$i]=$row; $i+... 阅读全文
posted @ 2014-07-02 15:26 Crawford 阅读(857) 评论(0) 推荐(0) 编辑
摘要: db.class.php 主要方法host = $host; $this->username = $username; $this->password = $password; $this->db_name = $db_name; } /** ... 阅读全文
posted @ 2014-07-02 15:05 Crawford 阅读(876) 评论(0) 推荐(0) 编辑
摘要: host = $host; $this->username = $username; $this->password = $password; $this->dbname = $dbname; } public function open() ... 阅读全文
posted @ 2014-07-02 14:55 Crawford 阅读(262) 评论(0) 推荐(0) 编辑