troubleshooting Question

php array

Avatar of impressionexpress
impressionexpress asked on
11 Comments1 Solution77 ViewsLast Modified:
Below is my php and my html, they are menu items. the most important part is checking the perm in each array and compare it with a $_SESSION variable
    [0] => Array
            [url] => index.php
            [class] => fas fa-list
            [name] => My Application's
            [perm] => 10

    [1] => Array
            [url] => application.php
            [class] => fas fa-file-medical
            [name] => New Application
            [perm] => 10

if($_SESSION['permission'] > PERM){
     <a href="URL"><i class="CLASS"></i> NAME </a>
Join our community to see this answer!
Unlock 1 Answer and 11 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros