Latest news
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

How to print Codeigniter upload error

if you want to display errors on upload functionality in codeigniter. Use the following function ...