lundi 31 août 2015

Php echo random User from DB

I trying to echo a random User from my database: I got this so far:

$randUser = "SELECT * FROM `staff` ORDER BY RAND() LIMIT 1";
echo $randUser;

But this just does output me my sql string. How to solve this issue.




Aucun commentaire:

Enregistrer un commentaire