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

[PHP] accessing data from classes

2002-03-12 Thread caspar kennerdale
I am just getting my head around classes, so forgive me if this is a schoolboy error! In order to learn I am re-writing my content management system and am in the process of writing an HTML.class and a MYSQL.class. so far so good. I spawn new instances of a table for example, sending

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 =