I'm trying to create a generic object that will work for several
different types of databases. Does anyone know why this won't work?
// Connect to the database
$cmd = $this->db_type . "_connect (\"" . $this->server . "\", \"" .
$this->login . "\", \"" . $this->password . "\");";
$this->id = eval($cmd);
In this case, $this->db_type = "mysql".
Thanks!
different types of databases. Does anyone know why this won't work?
// Connect to the database
$cmd = $this->db_type . "_connect (\"" . $this->server . "\", \"" .
$this->login . "\", \"" . $this->password . "\");";
$this->id = eval($cmd);
In this case, $this->db_type = "mysql".
Thanks!
Comment