Are you first timer at Why not join us and start exchange your programming knowledge with everyone. Register today!

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

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

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


Please log in or register to response this reference. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.