Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.www.php > #22762
| From | ^Bart <gabriele1NOSPAM@hotmail.com> |
|---|---|
| Newsgroups | it.comp.www.php |
| Subject | Re: Gestire chi "amministri" una tabella come nei gruppi di Whatsapp |
| Date | 2019-11-02 19:23 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <qpkhj6$pvh$1@gioia.aioe.org> (permalink) |
| References | <qphe5l$r2l$1@gioia.aioe.org> <h230rmFpiqgU1@mid.individual.net> |
> Quindi non aggiungere niente a quello che hai, ma crea nuove tabelle, > tipo amministratori(id_gruppo, id_admin), e/o permessi(id > auto_increment, permesso varchar) + permessi_utenti(id_utente, id_permesso) Morale della favola ho creato alla fine quattro tabelle: users ----------------------- id_user name 1 Peter 2 John 3 Sam userpermits ------------------------ id_userpermit name 1 Administrator 2 MediumUser 3 NormalUser restaurants ----------------------------- id_restaurant name 1 Mr. Pizza 2 Mc Nick 3 GoodLunch restaurantcrews --------------------------------- id_restaurant FK_id_restaurant FK_id_user FK_id_userpermit 1 1 1 1 2 1 2 1 3 1 3 2 In questo modo solo chi è Administrator potrà ad esempio cambiare il nome del ristorante, gli altri prevedo possano cambiare ad esempio solo la tabella con l'orario di apertura! In teoria potrei non mettere l'id_restaurant primary key ma lasciare che siano primary key tutte e tre le FK! > Bye. Saluti! ^Bart
Back to it.comp.www.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Gestire chi "amministri" una tabella come nei gruppi di Whatsapp ^Bart <gabriele1NOSPAM@hotmail.com> - 2019-11-01 15:06 +0100
Re: Gestire chi "amministri" una tabella come nei gruppi di Whatsapp Alessandro Pellizzari <shuriken@amiran.it> - 2019-11-01 15:21 +0000
Re: Gestire chi "amministri" una tabella come nei gruppi di Whatsapp ^Bart <gabriele1NOSPAM@hotmail.com> - 2019-11-01 17:18 +0100
Re: Gestire chi "amministri" una tabella come nei gruppi di Whatsapp ^Bart <gabriele1NOSPAM@hotmail.com> - 2019-11-02 19:23 +0100
Re: Gestire chi "amministri" una tabella come nei gruppi di Whatsapp bramante <bramante@yopmail.com> - 2019-11-03 10:14 +0100
Re: Gestire chi "amministri" una tabella come nei gruppi di Whatsapp ^Bart <gabriele1NOSPAM@hotmail.com> - 2019-11-03 12:11 +0100
csiph-web