Hi
i have a object wich connect automaticly to a Mysql Database.
EX:
$db= new mysqldb();
...........
$db->close();
unset($db);
But in some scripts i realy need another object.
EX:
$db= new mysqldb(); # automaticly I connect to mysql server
...........
$db1=&db; #I made a cpoy of $db
...........
$db1->close(); #I close $db1 but I got ERROR
...........
$db->close();
unset($db);
My question :
Do I have to close the connection to mysql on variable $db1, or it's just OK if I unset($db1).
If I say $db1=&$db; It actualy make a new connection to sql or use the conection from $db.
Kind regards,
iugin