[ create a new paste ] login | about

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

PHP, pasted on Dec 27:
<?php $customergroup = 1;?>

<?php $something = foo1;?>
<?php $somethingelse = foo2;?>

<?php 

if ($customergroup == "1" || $customergroup == "2") {?>


//This is shown if equals 1
//so i wish to use 
<?php echo $something ?> 
//inside this section instead of echo '';
as there would be html code as well and using that in echo ''; can get difficult

<?php } else {?>

//This is shown if equals 2
//so i wish to use 
<?php echo $somethingelse ?> 


<?php } ?>

but i wish to continue more sections


Output:
1
2
3
4
5
6
7
8
9
10
11
12




//This is shown if equals 1
//so i wish to use 
foo1 
//inside this section instead of echo '';
as there would be html code as well and using that in echo ''; can get difficult


but i wish to continue more sections


Create a new paste based on this one


Comments: