Good day!
- Need advice newbie! There is a table in phpmyAdmin "smeny".
- Previously, it had only 2 values: 1 and 2. Accordingly, if a doctor has 1 in the Monday field, then the browser displays "1 shift", if 2, then 2 changes are displayed:
<?php echo ($smena['monday']==1)?'I смена':'II смена'; ?>
// if the value == 1 then 1 change is output, otherwise 2 change.
Now I add three more values: 3 — sick leave, 4 — weekend, and 5 — vacation.
How do you set all five values for output in the browser, inside <?php echo ($smena['monday']==1)?'I смена':'II смена'; ?> <?php echo ($smena['monday']==1)?'I смена':'II смена'; ?> ?!
Thank you in advance!