database select issue

“SELECT column FROM table ORDER BY RAND() LIMIT 1 ” or you can add more restrictions to fetch from last 5 by time. Hope it help you a bit

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)