php - Scrolling through several rows in a database and displaying each one every few seconds -


i working on php project , looking bit of advise not sure if thinking best way implement it.

what need show news bulletins regarding site retrieved database. want display each row every few seconds, e.g. displays row 1, waits 5 seconds, displays row 2, waits 5 seconds shows row etc.

i'm not sure how best implement it. should have javascript function ajax post ($.post) query database, , return results in json, , keep looping through every x seconds display next row. or keep querying database next record show or there better method implement this.

thanks can provide.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -