Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/04/2013, 11:50
alex1084
 
Fecha de Ingreso: abril-2008
Ubicación: El Salvador
Mensajes: 736
Antigüedad: 16 años, 1 mes
Puntos: 47
Respuesta: insertar - PHP - Mysql

Prueba esto

Código PHP:
Ver original
  1. $plant="SELECT nom FROM $users1";
  2. $plantilla=mysql_query($plant);
  3.  
  4. while ($row = mysql_fetch_row($plantilla)){
  5.                         echo "<tr><td>$row[0]</td>";
  6.                         echo "<td>$row[1]</td>";
  7.             echo "<td>$row[2]</td>";
  8.             echo "<td>$row[3]</td>";
  9.             if($row["campo"]==""){
  10.                 echo "<td><input type='text' name='cost[]'></td></tr>";
  11.             }else{
  12.                 echo "<td>".$row["campo"]."</td>";
  13.             }
  14.            
  15.                 }