Buenas tengo el siguiente problema que me ha vuelto loco y no se que hacer. Es como hago una consulta de un registro y que los campos se me muestren organizadamente en cada celda de la tabla y viene en blanco favor ayudarme !!!
Pagina 1 llamo al registro que este a su vez ira a la página 2
Cons,php
<body>
<form id="form1" name="form1" method="post" action="cons2.php">
<table width="238" border="1" align="center" >
<tr>
<td width="65" height="23" align="center"><div align="left" class="style23">Cotización Number </div></td>
<td width="144" height="23" align="center"><label>
<div align="left">
<input type="text" name="sm" />
</div>
</label></td>
</tr>
<tr>
<td height="33" colspan="2" align="center"><p align="center">
<input name="bt_consultar" type="submit" class="contenido_nlog" value="Consultar"/>
</p></td>
</tr>
</table>
<p> </p>
</form>
</body>
2 Pagina a mostrar
<body>
<p><span class="style6 style23">
<?php
$cliente1=$cliente;
$sm=$_POST['sm'];
$con=mysql_connect('10.0.0.71','gilsoto','eureka20 03');
//$con=mysql_connect('localhost','root','root');
mysql_select_db('cotizacion');
$publicar="SELECT cliente as cliente1 from cotizaciones where sm = '".$sm."'";
$publicacion=mysql_query($publicar);
if(mysql_num_rows($publicacion)>0){
while ($row=mysql_fetch_array($publicacion))
{
{
}
}
}
?>
<p> </p>
<p align="center" class="style6 style23">Cotización</p>
<div align="center">
<table width="966" height="122" border="1" cellspacing="1">
<tr>
<td width="760" height="24" rowspan="3"><label>
<div align="left" class="style10"><strong>Cliente<span class="style17"> .....</span>:<?echo ($cliente1)?></strong></div>
<span class="style12">Dirección<span class="style17">.</span> :<span class="style17">.</span><?echo ($datos)?>
</label>
</span></td>
<td width="193" height="23"><div align="center" class="style5">
<div align="center">Cotización No. SM <?echo $sm?></div>
</div></td>
</tr>
<tr>
<td height="23"><div align="center" class="style5">Oferta válida por: <?echo ($validez)?> </div></td>
</tr>
<tr>
<td height="23"><div align="center" class="style5"><?echo ($fecha)?></div></td>
</tr>
<tr>
<
</body>