You're probably not fetching it correctly from the database, post the code you're using to fetch it from the database and your current schema and data from your news tables.
We probably need more information, like which bubble you're referring to but...
If you're asking how can I stop future chat bubbles from showing up for a specific user after they have loaded the room, then here is one way you can do it.
Find the following method signature (Should be in...
It looks pretty good! I don't understand the abstraction with your helper methods though, or your inconsistency with constants. I would also look towards making this compliant with PSR, and implement a bit more type safety if you did want to improve it even more. Also if you are validating exact...
Speed is probably the area I know most about PDO (I don't use it) so I shared my experience in that area, is that a crime? He is 21 so I think I'm within reason to label him a kid. I can almost guarantee this kid, yes kid, knows of very little to do with what his "cms" actually does, just read...
I couldn't care less what the kid is using, it was just a suggestion. Speed was one of the many things I mentioned and I did label it "insufficiently" (IE, it doesn't really matter, its a micro-optimization) but I guess you still decided to pick that one out because of your own reasons that...
PDO's main benefit (also IMO) over MySQLi is multiple driver support. MySQLi is (admittedly insufficiently) faster than PDO, and supports a procedural API as well as OOP (PDO only supports OOP). PDO seems overkill for this "cms", its not really a CMS but still.
Benchmarks show that MySQLi...