SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Sep 2006
    Posts
    238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    autoupdate mysql with jquery

    Hello

    I have a query and a php loop that outputs all the rows from a database.

    If there is a new entry in the database, how can I use jQuery to update the output without refreshing the page?

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,527
    Mentioned
    84 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by Jaynesh View Post
    Hello

    I have a query and a php loop that outputs all the rows from a database.

    If there is a new entry in the database, how can I use jQuery to update the output without refreshing the page?
    You would need to use an Ajax-based technique to poll a PHP script on a regular basis, so that any new information can then be retrieved by the page.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •