Home » PHP » Socialengine select Query wih random() function

Socialengine select Query wih random() function

$customersTable = Engine_Api::_()->getItemTable(‘customer’);

$select = $customersTable->select()

->where(‘enabled = ?’, 1)

->order(‘RAND()’)

->limit(3);

Leave a Reply

x

Check Also

Export Database using codeigniter

Database Utility Class : CodeIgniter PHP script to download mysql db-codeigniter,Backup MySQL database with CodeIgniter ...