Welcome Guest, Not a member yet? Register   Sign In
instead of write a query for mysql and call the db->query on it, we should use db methods like get where etc. to make it
#3

[eluser]Michael Wales[/eluser]
Random selects are supported as bargain mentioned, but the Active Record library, on MySQL. Unfortunately, I believe MySQL is the only database that supports this.

If you know you aren't going to switch database engines ever, it's still a good idea to use Active Record for two reasons:
1) It will keep you thinking in PHP, no need to bounce back and forth between PHP and SQL.
2) It will protect your application from those nasty SQL injection exploits.


Messages In This Thread
instead of write a query for mysql and call the db->query on it, we should use db methods like get where etc. to make it - by El Forum - 06-25-2009, 02:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB