PHP logging text from text area with with random class [on hold]

113
December 01, 2017, at 12:13 PM

I am working on a php and chat room and it works by typing in what you want and when you press enter it logs your name that you chose in a tag and after the tag what your message is.

e.g. <span>Bob</span>Hello

I would like to make it so the span tags are logged with a random class, that could maybe be in a javascript array preferably. But i also want to make it so each span class that has the same name has the same colour, so that Bob's nickname will be green every time he says something and not a different colour every time. Essentially i want everyones nicknames to be a different colour.

Thanks!

READ ALSO
How add new arrray Row in multidimensional Array PHP

How add new arrray Row in multidimensional Array PHP

I have 2 array I would like add new row in the first with informtion from the secondMy 2 arrray

318
How to move Wordpress admin files to wp-uploads to use as Email attachment?

How to move Wordpress admin files to wp-uploads to use as Email attachment?

I am working with WeForms to create an event registration formThe plugin automatically generates a PDF-File, which can be downloaded in the backend area (under /wp-admin/admin-post

191
javascript to connect to local RestfulApi fail

javascript to connect to local RestfulApi fail

So i'm try to create an social webSo in my html i have this scrip

224
having trouble with session_start()

having trouble with session_start()

I have a login page, home page and a nav page that I include in both of themThe nav shows an admin tab if the session variable admin is a 1

142