I am currently working on my own shoutboxes using PHP, MYSQL and Jquery.
When a user has entered the shoutbox a message appears saying:
X has entered the shoutbox.
I do not want to store all visitors / users in MYSQL rows and so I was thinking I would need an array with a foreach script.
I’m not too sure how I should go about doing this, can someone please point me in the right direction?
Thank you
You could use a
$_sessionvariable, like when a user entered the shoutbox$_session->users[] = $user.$_session->usersshould be an array where you keep only their ids.