Hello All
I am new to the forum, i just joined.. looking forward to a good place to meet other pro php developers.
My OO knowldge is very limited, I been doing mostly php procedural coding. I am starting my next project here at work and I trying to do this one with a CLASS Objects to see how it all works out.
I am getting some errors, and Its prob because I dont know OO and PHP.
I read a bunch of documents on it, however there are still little questions I cant seem to find exact answers for.
Below is the code I wrote so far to connect to the database.
But I keep getting a error, and I think it has something to do with the this->$db_primary_object part of the code.
maybe some hidden rules with php and OO i am not getting ?
Parse error: parse error, unexpected T_OBJECT_OPERATOR in \htdocs\sales\include\db.php on line 21
here is the basic code i am using to test the object.