Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/11/2011, 17:18
tap
 
Fecha de Ingreso: mayo-2009
Mensajes: 58
Antigüedad: 14 años, 11 meses
Puntos: 5
Se puede anidar tablas html para consultas a mysql?

Se puede hacer consultas desde PHP a la bd anidando tablas html? aquí pongo la estructura que necesitaría para ser mas clara:
Código HTML:
<table width=900 border=0 cellpadding=0 align=center>
  <tr><td width=300><table width=300 border=0><tr>
              <td>nombre <br> tmb </td></tr>
             <td>fot</td></tr></table>
       <td width=300><table width=300 border=0><tr>
             <td>minerales </td><td>Vitaminas</td></tr>
             <td>proteinas</td><td>calorias</td></tr></table>
       <td rowspan=2 width=300>beneficios</td>
  </tr>
</table> 
Los nombres que llevan los td son exactos a los de los campos de la bd. Pero, no sé cómo preguntar desde PHP para que me tome esta petición. Podrían darme un ejemplo, por favor? Muchas gracias