Maybe this has been addressed before, if so, please point me to the thread?
What I am trying to do, is to refresh data from a data base table, into a container on my web page. The main index page, includes the particular library file, which is placed in an absolute position on the main page. This container is a certain dimension, and is divided into two smaller dividers. The bottom divider contains a form, which when submitted, calls back the main index file, which then refreshes everything that needs to be displayed currently in the main page. Not really as complicated as I make it sound, lol.
However, the issue is, what gets entered into the one line form, is now a $POST object. In the library file, I simply check to see if the $POST object is not null, and if it isnt, then I load the text field into the database as an insert, along with the username and a timestamp. Then, the top divider in this container is populated with what is read from the database. Yeah, simply put, it is a homemade chat applet type of thing using pure php/html/css/MySql. I would use soemthing someone else designed, but, it never fits in with my size/needs, as well as I need to learn how to do this myself. Im edumacatin myself, ya know?
Anyway, that portion of it works well to refresh the top display portion everytime the user hits the enter key or clicks on the send button. But, how to refresh when someone on another log in enters data in the same fashion? I tried using a meta refresh on the main index file, but that erases the input that someone is typing in every time it refreshes.
I have more I need to do to make it work, such as, the text overflows as it stacks down the lil window, I need to figure out how to delete the top most postings as it goes down past a certain point.
Any help?
Ice