Re: [PHP] accessing data from classes

2002-03-13 Thread Jeff Warrington
In [EMAIL PROTECTED], Samuel Ottenhoff wrote: It is good that you are looking into classes and functions. The concept you are missing is that of returning a result. At the end of your function mysql_query, add a line: return $result; Then, when you call that function, make it like

Re: [PHP] accessing data from classes

2002-03-12 Thread Samuel Ottenhoff
It is good that you are looking into classes and functions. The concept you are missing is that of returning a result. At the end of your function mysql_query, add a line: return $result; Then, when you call that function, make it like this: $resultArray =