1 Attachment(s)
How to: show users on the page they are
Hi,
I've made a script where guests can put in there name and a message. All guests can do this and all guests currently online on the page can read it.
Now I've added a second page, but this shows all the users and their messages even from page 1. I want it so that all the guests on page one see all the messages and guestnames on page one. The guests on page 2 will only see the guest names and messages on page 2 etc
And if possible, the menu will show how many guests are currently on the page.
I have a demo here (don't mind the looks it's just a demo).
Other issues:
If I refresh the page after 30 min or so, I have to re-fill in my message and name. Why is this, I mean, I am still on the page, never left it, so my info shouldn't be deleted. (It's supposed to delete a guest from the db when he leaves the page).
Also, I just started learning php so if there is some code clean up etc plz do :)
Hope you guys can help me fix these things
Null
ps In the attachment are all the files you need