Login","$this->Password");mysql_select_db("$this->dbName", $this->conn); }func">
时间:2021-07-01 10:21:17 帮助过:23人阅读
function dbClass(){
$this->conn = mysql_connect("$hostName","$this->Login","$this->Password");
mysql_select_db("$this->dbName", $this->conn);
}
function executeQuery($sql){
$this->result = mysql_query("$sql",$this->conn);
return $this->result;
}
function closeConn(){
mysql_close($this->conn);
}
}
?>