Ver Mensaje Individual
  #6 (permalink)  
Antiguo 16/11/2010, 12:52
Avatar de seguridadweb
seguridadweb
 
Fecha de Ingreso: marzo-2010
Mensajes: 41
Antigüedad: 14 años
Puntos: 1
Respuesta: Embeber php y html

Tenes que concatenar las variables y ademas tenes al reves las comillas, el codigo final arreglado seria asi:

Cita:
Iniciado por Codigo
<?php
require('./mysql/configuracion.php');//aqui se realiza la conexion al bd
$sqle="SELECT * FROM revistas";
$sqle=mysql_query($sqle);
echo "<div class='form-all'><!--esto hace que no sea muy grande-->
<label class='form-label-top' id='label_1' for='input_1'> </label>
<div id='cid_1' class='form-input-wide'>
<table summary='' cellpadding='4' cellspacing='0' class='form-matrix-table'>
<tr>
<th style='border:none'>
&nbsp;
</th>
<th class='form-matrix-column-headers' style='width:52%'>Compro</th>
<th class='form-matrix-column-headers' style='width:52%'>Leyo</th>
</tr>";
while ($row=mysql_fetch_array($sqle)){
echo "<tr>
<th align='left' class='form-matrix-row-headers' nowrap='nowrap'>".$row['nombre']."</th>
<td align='center' class='form-matrix-values'>
<input type='text' size='1' name='q1_1[0][]' />
</td>
<td align='center' class='form-matrix-values'>
<input type='text' size='1' name='q1_1[0][]' />
</td>
</tr>
</table>
</div>";}
echo "hola";
?>
Responde si te funciono haber si encuentro talves otro problema