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
Post a Comment