I'm not sure why the following code won't work.
$publish = "<input type=\"checkbox\" name=\"publish\" value=\"1\"";
$pstatus = $row['view'];
if ($pstatus == "1"){
$sel = "checked";
}else{
$sel = "";
$published = $publish." $sel>";
echo $published;
}
Nothing at all displays. I'm using similar code elsewhere on the same page without any problems. I change the value of $pstatus to 1 and still nothing echoed. I also tried echoing $pstatus and did not see anything. I looked at the ouput source code and did not see any errors or anything echoed.
This is probably an easy one.
Any ideas?