创建自己的mysql_class类

<?php/* 创建自己的mysql_class类 */ class mysql{ private $host;//为了数据库安全,设置私有属性 private $name; private $pass; private $bbs; private $gb; function __construct($host,$name,$pass,$bbs,$gb){$this->host=$host;$this->name=$name;$this->pass=$pass;$this->bbs=$bbs;$this->gb=$gb;$this->connect...
php | 2011-10-03 10:50 | 阅读 1390 次 | 评论 0 条