Are you first timer at lazacode.org? 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
12 views
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()';
	break;

 

Please log in or register to response this reference.

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