how to update a <div> when database have changed, with ajax php and mysql??

Discussion in 'PHP' started by free-designer, Jul 21, 2010.

  1. #1
    Hey experts,
    I really need to this.
    I want a way to make a div works like (real-time), when the database change automatic update the div.

    so if i have a div with value of 5 and this value i got it from the database with mysql like "SELECT count FROM tablename" And fetched it out on a div with php, how can i make this div get to 6 when the value on the database really changed.

    Thanks, anyhelp
     
    free-designer, Jul 21, 2010 IP
  2. Imozeb

    Imozeb Peon

    Messages:
    666
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Imozeb, Jul 21, 2010 IP