- TS TS
- #101
nakikita mo yung "All"
pindutin mo yon
Attachments
-
You do not have permission to view the full content of this post. Log in or register now.
nakikita mo yung "All"
pindutin mo yon
yang pangatlo click mo yan
awit ganon po baahahaha dami problema ng system mo boss.
ahahahah ganyan nga mas madali e kaso gusto niya ternary operation HAHAHAsolve na?
<td>
<p class="m-0">
<?php
if($row['type'] == 1){
echo = "Administrator";
}
if($row['type'] == 2){
echo = "Staff";
}
if($row['type'] == 3){
echo = "Process Owner";
}
if($row['type'] == 4){
echo = "Auditor";
}
if($row['type'] == 5){
echo = "Auditor Lead";
}
if($row['type'] == 6){
echo = "QAH";
}
if($row['type'] == 7){
echo = "Team Management";
}
if($row['type'] == 8){
echo = "Human Resource";
}
?>
</p>
</td>
try this
<?php
$roles = [
1 => 'Administrator',
2 => 'Staff',
3 => 'Process Owner',
4 => 'Auditor',
5 => 'Auditor Lead',
6 => 'QAH',
7 => 'Team Management',
8 => 'Human Resource'
];
?>
<td ><p class="m-0"><?php echo( $roles[$row['type']] ) ?></p></td>