how to check check with respect to database values

[b]I written following program.but this program is not giving proper output
if $homepage=1 then it check checkbox1

<?php $homepage=1; switch($homepage) { case 1:{echo ""; break;} case 2: {echo ""; break;} default:{} ?> [/b]

To avoid an XY problem, please outline what you are attempting to accomplish. (I am not referring to your code snippet.)

Sponsor our Newsletter | Privacy Policy | Terms of Service