[ create a new paste ] login | about

Link: http://codepad.org/emRkTmsg    [ raw code | output | fork ]

PHP, pasted on Dec 27:
1
2
3
4
5
6
7
8
9
10
11
<?php $customergroup = 1;?>

<?php 

if ($customergroup == "1" || $customergroup == "2") {
?>first content if variable is/equals 1<?php 
} else {
?>Second content if variable is/equals 2<?php
}

?>


Output:
1
2

first content if variable is/equals 1


Create a new paste based on this one


Comments: