SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2014
    Location
    Australia
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to display new database entrys instantly using AJAX

    Hi there, i am currently making a system that requires to display a new database entry seconds after it was inputted into the database. i have a script that partly does this but it gets a whole list of the database entries and not just the latest one.

    i have the scripts ready to post if you would like to see them.

    thanks Beer

  2. #2
    SitePoint Zealot
    Join Date
    Feb 2005
    Location
    Aveiro, Portugal
    Posts
    164
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Hi!

    Why don't you modify the script to fetch only the last record or apply a clause where it filters, say, records that have been saved in the last 5 minutes or so (if your records have a saveddate field).

    HTH
    Yours truely
    Mário Ramos

  3. #3
    SitePoint Member
    Join Date
    Mar 2014
    Location
    Australia
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not really good at Javascript this is why i got a script.


Tags for this Thread

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
  •