get a rand record from DB.Table
{Code}
select * from img_lib where id >(select floor(max(id)*rand()) from img_lib) limit 0, 1
{Code}
select * from img_lib where id >(select floor(max(id)*rand()) from img_lib) limit 0, 1
YiiLib Foucs on: Pro Web Dev Tutorial and Pro Web Dev Service
Copyright © 2011 - 2025 YiiLib.com(YiiBlog.info) - Designed & Developed by Boy.Lee
Leave Comment