Hola a todos, espero que esten bien, tengo una duda.
 
Tengo esto:
 
 <input type="checkbox" name="cap[]" id="cap[]" class="chk1" value="Metal Alternativo" />
   <label for="genero1">Metal Alternativo</label>
 
<input type="checkbox" name="cap[]" id="cap[]"  class="chk2" value="Heavy Metal"  />
  <label for="genero2">Heavy Metal</label>
 
Y esto:
 
 <input type="checkbox" name="cap[]" id="chk1" class="chk1" value='Metal Alternativo'  <?php if($fila ['variable'] == ??????? ) echo 'checked="checked"'; ?>/>
           <label for="genero1">Metal Alternativo</label>
 
 
  <input type="checkbox" name="cap[]" id="chk2" class="chk2" value="Heavy Metal" <?php if($fila ['variable'] == ??????????? ) echo 'checked="checked"';  ?> />
           <label for="genero2">Heavy Metal</label>
 
Que tengo que colocar en los signos de interrogación.
 
Porque no estoy seguro si es de esta manera o la unica forma es esta:
 
 <input type="checkbox" name="genero1" id="chk1" class="chk1" value="Metal Alternativo" />
   <label for="genero1">Metal Alternativo</label>
 
<input type="checkbox" name="genero2" id="chk2"  class="chk2" value="Heavy Metal"  />
  <label for="genero2">Heavy Metal</label>
 
Y esto:
 
  <input type="checkbox" name="genero1" id="chk1" class="chk1" value="Metal Alternativo"  <?php if($fila ['genero1'] == 'Metal Alternativo') echo 'checked="checked"'; ?>/>
           <label for="genero1">Metal Alternativo</label>
 
 
  <input type="checkbox" name="genero2" id="chk2" class="chk2" value="Heavy Metal" <?php if($fila ['genero2'] == 'Heavy Metal') echo 'checked="checked"';  ?> />
           <label for="genero2">Heavy Metal</label>
 
Espero sus respuestas atentamente. Gracias por todo y por favor ayudenme, saludos. 
   
 

 Respuesta: Comparacion de datos en una variable
 Respuesta: Comparacion de datos en una variable 


