PHP select data randomly

$sql="SELECT * FROM wp_posts ORDER by RAND() LIMIT 1";

 

Leave a Reply