Einzelnen Beitrag anzeigen
Alt 23.09.2004, 23:44  
Gast
 
Beiträge: n/a
Standard

Warum machst du den es nicht so:

PHP-Code:
function connect($host$user$password)
{

//Falls du die Variablen $host, $user, $password nochmals brauchst:
$this->host $host;
$this->user $user;
$this->password $password;
//

$this->link mysql_connect($this->host$this->user$this->password);

//Aber es funktioniert auch dies:
$this->link mysql_connect($host$user$password);

//... weiterer Code

  Mit Zitat antworten