tengo esto
Código PHP:
Ver original
<legend class="addedit">Profile(s):</legend> <table width="100%" valign="top" cellpadding="0" cellspacing="0"> <?php $lr = "0"; $idprofiles = $_SESSION["adminprofiles"] ; if ($lr == "0") { if ($dbprof <> "") { $checked = ""; foreach($dbprof as $printprof) { if ($printprof == $line2["id"]) { $checked = "checked=\"checked\""; } } } else { $checked = ""; } print("<tr width=\"100%\" valign=\"top\"><td width=\"50%\" valign=\"top\"><input type=\"checkbox\" name=\"profiles[]\" tabindex=\"15\" value=\"".$line2["id"]."\" ".$checked."/>".$line2["name"]."</td>"); $lr = "1"; } else { if ($dbprof <> "") { $checked = ""; foreach($dbprof as $printprof) { if ($printprof == $line2["id"]) { $checked = "checked=\"checked\""; } } } else { $checked = ""; } print("<td width=\"50%\" valign=\"top\"><input type=\"checkbox\" name=\"profiles[]\" tabindex=\"15\" value=\"".$line2["id"]."\" ".$checked."/>".$line2["name"]."</td></tr>"); $lr = "0"; } } ?> </table> <br><input type="checkbox" name="allprof" onClick="checkedAll(edituser)">All </fieldset><br>
y quiero que solo muestre lo que tiene de su secion del profiles no salgan todo los profiles de la tabla del cmum_profiles