i do agree :/ a simple if statement would be a lot more efficientWhy the hell do you run a while loop on login? LOL, you only need to run num rows check. And same with the userInfo, no loop needed - simply fetch assoc.
i do agree :/ a simple if statement would be a lot more efficientWhy the hell do you run a while loop on login? LOL, you only need to run num rows check. And same with the userInfo, no loop needed - simply fetch assoc.
All OOP is, is Object-Oriented PHP. If you use class's and not much procedural you have ideal O-O code. just because a class variable is public, private, static or even protected doesn't make it non Object-Oriented Code..Never define public variables in classes, it's not OOP.
All OOP is, is Object-Oriented PHP. If you use class's and not much procedural you have ideal O-O code. just because a class variable is public, private, static or even protected doesn't make it non Object-Oriented Code..
If your gonna lecture people on programming standards use the correct words or do your research first dumb-ass.
Not what i meant you said because its public variable its not oop and that statement is false it is OOP but its not at OOP standards. Yes he should have a method to set information to that variable and make a method to receive the variables informationNo it's not, object oriented design is when you use objects that is capable of reciving, processing and sending data out or to other objects. When you use public variables you can set data in a object from outside the object, this is not OOP, your object has to receive it and process it.
Also what? Even protected? WTF, protected is very much preferred in object-oriented design