The code in 'Update 2 databases' is too complex and also assumes that the file read has only two fields ($db_userid and Email) with the delimiter inbetween. I do not understand how it could be easily altered to fit my needs. I think I am in need of clear/distinct help, so, below, find a description of how things should work (and already work):
The Admin adds a general message to a static page which can be read by all users:
-Everybody who has not read the message gets a flashing icon (DONE)
-Those who have read the message will get a 'normal' non-flashing icon (NOT DONE)
My external database has 12 or (eventually) more fields to come. The 13th field in cfg looks like this:
Adminmessage => [12, 'alpha', 1, 1, 0, '', ''],
In the database, in every user's Adminmessage field it should either contain a 1 (message not read) or a 0 (message read).
The writing of either the 0 or the 1 to ALL user's Adminmessage-field I have already solved. So every user potentially knows when there's a new message and when not.
What I need to achieve is the individualization of the 0 or the 1, because, as it is now, I can only flag either 0 or 1 for ALL users, but when they have read the message individually, I haven't any idea how to write the routine to open (USERINFO, ">$db_script_path/userinfo.db") and having the zero (0) written to the respective users' Adminmessage-field (to ONLY have THAT users field containing a zero (0)), while the others that haven't read the message, still have a one (1)...
Hope this was an understandable description and thanks for listening.
CSky