Discussion – Lesson 13 - Object-oriented hit counter in PHP - continuation
BackComments
Member
6 messages from 6 displayed.
//= Settings::TRACKING_CODE_B ?> //= Settings::TRACKING_CODE ?>
Comments
Since count
is a MySQL reserved keyword, we use cnt
as the name of the column carrying the count
HI, whats the meaning of using @ when writing self::$connection = @new PDO?
The @
character suppresses error messages - https://www.php.net/…rcontrol.php. I'm not sure why we
decided to use it here, it should work without it as well.
Active record is no standard way how to handle data and it's often considered an antipattern, you can try googling "activerecord antipattern" - https://www.google.com/search?…
It's an interesting topic to write about, but I don't think it's a must-have stuff. I'll write it down and try to bring something about that in the future.
6 messages from 6 displayed.