Ver Mensaje Individual
  #14 (permalink)  
Antiguo 10/11/2012, 08:49
Montes28
 
Fecha de Ingreso: septiembre-2010
Mensajes: 1.853
Antigüedad: 13 años, 7 meses
Puntos: 6
Respuesta: Imprimir consulta mediante php en dos divs distinto

emprear gracias por responder

me falta imprimir los checkbox

no se como concatenarlos

lo estoy hacciendo asi

Código PHP:
Ver original
  1. $contenido_izq = "";
  2. $contenido_der = "";
  3. $chk="";
  4. while($fila = $consulta->fetch(PDO::FETCH_ASSOC))
  5.  
  6. {
  7.  
  8.      
  9.               if($fila['clasificacion'] == 1 ){
  10.               $chk.= <input type='checkbox' name='opcion' value=''>;
  11.               $contenido_izq .= $fila['nom_categoria'] . '-' . $fila['clasificacion'] ;
  12.              
  13.               }else{
  14.               $chk.= <input type='checkbox' name='opcion' value=''>;
  15.               $contenido_der .= $fila['nom_categoria'] . '-' . $fila['clasificacion'];
  16.               }
  17.      
  18.      
  19.      ?>

que estoy haciendo mal?