I always have big problems with shielding, because my eyes just break when I try to check everything as an aspect:
while ($row_core = sqlsrv_fetch_array($result_core,SQLSRV_FETCH_NUMERIC)) { $gp++; echo '<input type="checkbox" name ="group-'<?php echo $gp; ?>" > <label for="<?php echo $gp; ?>"> $sql_s_core = "SELECT nameM FROM dbo.menu WHERE head_id=0"; $result_core = sqlsrv_query($conn,$sql); } This is a piece of the menu, namely check box, the point is that the label values for it are pulled out of the database in a loop, the checkbox and label have id that should be new for each new box check, a new menu item. How do I properly shield it? In the loop I made a variable $gp which for each round of the loop becomes +1, then its value is displayed in the id of the element.
echo) a break inphptags then? XZibit transmits a fiery sign: I put a gap pkhp in the echo, so that you could echo while you echo! - SLy_huh