jeudi 25 octobre 2018

PHP MySQL - How to select items randomly on weekly basis?

in PHP MySQL if i want select items randomly on Daily Basis i use following code.

ORDER BY rand(" . date("Ymd") . ")

But How i can select items randomly on Weekly Basis ?




Aucun commentaire:

Enregistrer un commentaire