I have this variable in php $get_user_tipo and it gets their own value from a mysqli field (int) and its a numeric value, i'm usign a number to represent a role, por examble 1 for admins, and 2 for employees.
I want to do a conditional statement for the variable and compare it with a value, for example, (a bad, bad example)
if($get_user_tipo=1) {
do something
} else {
Do nothing , just jump to the next check
}
if($get_user_tipo=2) {
do something
} else {
Do nothing , just jump to the next check
}
i'm pretty new in PHP