The access function iif is very easy to check an expression and return a different value wether the expression is true or false.
functionÂÂiif($expression,ÂÂ$returntrue,ÂÂ$returnfalseÂÂ=”) {
    return ($expressionÂÂ?ÂÂ$returntrueÂÂ:ÂÂ$returnfalse);
}
?>
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Nov | ||||||
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |
RSS feed for comments on this post · TrackBack URI
Leave a reply