Q2A - Set home question in random order with RAND()

0 votes
203 views
added Jul 25, 2022 in Software & tools by lcjr First Warrant Officer (11,530 points)
// line 314, add
// $sortsql = 'ORDER BY RAND()';

case 'created':
case 'hotness':
	$sortsql='ORDER BY ^posts.'.$sort.' DESC';
	$sortsql = 'ORDER BY RAND()';
	break;

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...