For the love of all kind of religious and non-religious deities - DO NOT use variables in a string like that. You will open yourself up to all kinds of sql injection trouble. Use parameter binding.
I did some work with Elgg at one point, up until I discovered the number of database queries for a users profile page was upwards of over 1000 and had a memory usage footprint of over 25MB.
It's a shame it was that sloppy (I can't comment on the current state of affairs), because the community is very active.
Important Side Note
For the love of all kind of religious and non-religious deities - DO NOT use variables in a string like that. You will open yourself up to all kinds of sql injection trouble. Use parameter binding.
MySQLi PDO
More Information on SQL Injection
This entirely depends on where and how the class is being used so isn't a good rule of thumb at all.
yes really. that is a fuck nut of a conditional.
I did some work with Elgg at one point, up until I discovered the number of database queries for a users profile page was upwards of over 1000 and had a memory usage footprint of over 25MB.
It's a shame it was that sloppy (I can't comment on the current state of affairs), because the community is very active.
or exit;