note 39434 added to function.mysql-connect
| From: | php-general at lists dot php dot net | Date: | Wed, 28 Jan 2004 18:08:28 +0000 |
| Subject: | note 39434 added to function.mysql-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-64322@lists.php.net to get a copy of this message | ||
<?php
class DB {
function DB() {
$this->host = "mysql.host.com";
$this->db = "myDatabase";
$this->user = "root";
$this->pass = "mysql";
$this->link = mysql_connect($this->host, $this->user, $this->pass);
mysql_select_db($this->db);
}
}
?>
----
Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39434
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39434&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39434&report=yes
Search -- http://master.php.net/manage/user-notes.php