I may be reinventing the wheel but that's intentional. I am trying to make a real-time chat application using PHP HTML MySQL CSS. It's working quite well over the network and grabbing new content every second. In IE you can notice a flicker every second, seemingly it is pulling all that data again and again, even if there's no new content, and I don't like that.

I like the idea of the last ID, so I did this, I am novice with JS: $sql = "SELECT MAX(id) FROM irb_posts"; Got the max value... then... var global_var = <?php echo $row['MAX(id)'] ?>; The inital time the page is loaded it will get ALL data. Subsequent times it will get data with ID > the max ID. However this is replacing all my existing data. Do I need to change it to append somehow?
–
klidifiaApr 21 '11 at 3:33