How to auto update section of page using php

Discussion in 'PHP' started by minhazikram, Apr 30, 2012.

  1. #1
    I have a student wall, where students can post any comment. the comments are all saved in the database using php. I have succeeded in saving the data into the database and retrieving them from the database. But i cannot auto update the page with the data from the database. Can anyone help me out please.
     
    minhazikram, Apr 30, 2012 IP
  2. joetito1

    joetito1 Member

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #2
    You'll want to look into using an AJAX library (like jQuery) to create an AJAX call to the database to get more info and update the page. Auto updates are performed client side, not server side.
     
    joetito1, Apr 30, 2012 IP
  3. seafrontsteve

    seafrontsteve Peon

    Messages:
    451
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks Joe,
    I've been thinking about leaning a bit of Ajax for a while now - any suggestions on a good place to start?
     
    seafrontsteve, Apr 30, 2012 IP
  4. joetito1

    joetito1 Member

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #4
    Start with the jQuery website and documentation. Don't bother writing AJAX calls by hand, jQuery makes everything so simple.
     
    joetito1, Apr 30, 2012 IP