Wonder if anyone can help me with the syntax for this. I have created a class called Collective and with that class a public static method called getInstance which reads several rows from a mysql table and creates an object of class Collective for every row read. I;m not getting any major syntax errors when i run this but it just isnt working well the db call is working and returning what i expect but the object creation but isnt. Any advice? (PS - I'm just passing in joebloggs to test the class and i'm getting rows back from the database so no problem there).
Brilliant thanks Gilberto. In all my testing I could tell that it was not getting to the construct function but was throwing no error as i assume it was simply treating it as another class method. But I didnt ever consider the spelling being wrong. Thanks for taking the time to look it over. Cheers.