<?php class opmysql{ private $host = 'localhost'; //服务器地址 private $name = 'root'; //登录账号 private $pwd = ''; //登录密码 private $dBase = ''; //数据库名称 private $conn = ''; //数据库链接资源 private $result = ''; /