I am currently working on a shoppingsystem that uses MySQL to handle the product database. I have writen a function that fetches the rows that where selected out of the MySQL database and puts it into an array. The function gets a referance to the array where the information is to be stored. And now comes the problem. if I declare the array using my() the function doesn't put anything in it, but if I use local() instead the function works perfectly. Why?