I found this in a code written by a newbie. I thought it would be a good example about giving people false choices.
<?php if($complaint['Complaint']['status'] == 'accepted') {?> by <?php echo $complaint['AssignedTo']['name']; ?> <?php } if($complaint['Complaint']['status'] == 'decline') {?> by <?php echo $complaint['AssignedTo']['name']; ?> <?php } if($complaint['Complaint']['status'] == 'updated') {?> by <?php echo $complaint['AssignedTo']['name']; ?> <?php } if($complaint['Complaint']['status'] == 'closed') {?> by <?php echo $complaint['AssignedTo']['name']; ?> <?php } ?>
Funny but nearly gave me a heart attack.


ur junior wrote it?
YAN yg tulis.
YAN – Yet Another Newbie