Welcome Guest, Not a member yet? Register   Sign In
Random Quote
#2

[eluser]LuckyFella73[/eluser]
You can set order by random when using the active record class.

For example:
Code:
$this->db->order_by("id", "random");

Have a look at the user guide / active record page:
http://ellislab.com/codeigniter/user-gui...ecord.html

Cheers


Messages In This Thread
Random Quote - by El Forum - 09-04-2009, 10:37 AM
Random Quote - by El Forum - 09-04-2009, 10:50 AM
Random Quote - by El Forum - 09-04-2009, 11:06 AM
Random Quote - by El Forum - 09-04-2009, 12:15 PM
Random Quote - by El Forum - 09-04-2009, 01:27 PM
Random Quote - by El Forum - 09-04-2009, 01:51 PM
Random Quote - by El Forum - 09-04-2009, 08:00 PM
Random Quote - by El Forum - 09-05-2009, 04:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB