Jump to content

help


dachshund

Recommended Posts

ok, so here i want it to choose 4 random 'feature' articles, apart from the most recent one, ie. the highest 'id' which also has the section LIKE '%feature%'

 

anyway to do this?

 

here's what I've got

 

 


$sql = "SELECT * FROM content WHERE `section` LIKE '%feature%' ORDER BY RAND() LIMIT 1,4";

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/168501-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.