[PHP] Help with array in class needed

2001-11-10 Thread Alexander Czernay
I've written a class that reads a database into an array. This works fine, but when I try to copy the array outside the class using a function that only does a return $this->$data, I only get one sub-array of the whole one. Any ideas? Thanks Alexander Code: class Adressen { var $connect; //

[PHP] Class for database-access doesn't work

2001-11-10 Thread Alexander Czernay
Hi, I just tried to write a simple class for opening a MySQL-database with PHP. The database get's opened, but the handle isn't transfered back. I can then use the database, but only if I don't specify the handle in mysql_query. Any ideas? Code: db.php: $connect = mySQL_connect("host","user","p