tienphuonghk Posted May 18, 2010 Share Posted May 18, 2010 Hi everybody,I am creating news page.I want show 5 news latest when I input 5 news latest will have "new".Help me Link to comment Share on other sites More sharing options...
Synook Posted May 18, 2010 Share Posted May 18, 2010 How are you planning to store your news? Link to comment Share on other sites More sharing options...
tienphuonghk Posted May 18, 2010 Author Share Posted May 18, 2010 How are you planning to store your news?My plan is create database in mysql(title,date,comment).My news show everyday,I want news latest(e.g:5 news) will have "new" .Do you know I want ? My friend Link to comment Share on other sites More sharing options...
Synook Posted May 18, 2010 Share Posted May 18, 2010 Then just sort your field by date, descending, and LIMIT 5. Link to comment Share on other sites More sharing options...
tienphuonghk Posted May 18, 2010 Author Share Posted May 18, 2010 Thank so much. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.