Ver Mensaje Individual
  #4 (permalink)  
Antiguo 05/10/2013, 11:06
AlanChavez
 
Fecha de Ingreso: junio-2010
Ubicación: Charlotte, NC
Mensajes: 611
Antigüedad: 13 años, 10 meses
Puntos: 95
Respuesta: Estaria mal separar el html y el php de un sistema

no , no esta mal separarlo.

De hecho php ofrece un lenguaje de "plantilla", entonces en lugar de escribir

Código PHP:
Ver original
  1. <?php while($condicion) { ?>
  2. tu HTML
  3. <?php } ?>

escribes:

Código PHP:
Ver original
  1. <?php while($condicion): ?>
  2.  
  3. <?php endwhile ?>

Por cierto, no utilices las funciones mysql_ utiliza PDO o mysqli. Tu codigo es vulnerable a inyeccion de SQL.