Posts by user128234 • 26 points
1 post
-
1
votes1
answer54
viewsA: How to reduce this PHP/MYSQL function by adding data in multiple columns?
Use arrays $permissions = ['accounts', 'products', 'sales', 'purchases', 'financial', 'settings']; $modifiers = ['view', 'add', 'edit', 'delete']; foreach ($permissions as $permission) { foreach…