coldfingertips has asked for the wisdom of the Perl Monks concerning the following question:
Can someone tell me how THEY would setup the mysql part of this? Like what tables, columns, how you'd do it?
Details:
I know enough how to do the usernames and passwords but I'm not sure if I should make a column for blocked IPs and each IP has their own row (same thing with the swear words to watch for and reserved names).Admin Panel > *Admin usernames and passwords needed for login *Reserved name list (people can't use the names like "admin" in the + script *Swear words the admins wish to check for in a list *Blocked IP addresses for innappropriate users (will be checked eac +h time the script is loaded to see if they can use the chat script) Chat > *Stores their username, IP, date/time of message, message *Will print the last 5 or 10 messages stored Log > *Will display all messages in newest>oldest order with 50 messages +per page
I was thinking it would be three tables. ADMIN (login information), CHAT (messages, ip, username, etc) NITTYGRITTY (blocked IPs, swear words, reserved usernames that users can't use, etc).
If it makes any difference, when the admin logs in it'll store their information in a COOKIE which the script checks. If this cookie exists they can use the RESERVED NAMES. No one else can use the names.
Before I go out and about and do this, if any of you has a better form to create this please let me know.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Chat script + mysql
by eric256 (Parson) on Feb 17, 2005 at 18:19 UTC | |
by coldfingertips (Pilgrim) on Feb 17, 2005 at 18:25 UTC | |
by eric256 (Parson) on Feb 17, 2005 at 18:34 UTC |