Ver Mensaje Individual
  #7 (permalink)  
Antiguo 23/09/2011, 10:11
Avatar de mauricioheat
mauricioheat
 
Fecha de Ingreso: septiembre-2011
Ubicación: Bogota
Mensajes: 39
Antigüedad: 12 años, 7 meses
Puntos: 0
Respuesta: Como guardar informacion en variable con multiples datos

continuacion del escript cotizacion.php

<table width="802" border="1" align="center" cellspacing="0" bordercolor="#FFFFFF">
<tr>
<td width="187" bgcolor="#333333"><span class="Estilo18">Producto</span></td>
<td width="344" bgcolor="#333333"><span class="Estilo18">Descripcion</span></td>
<td width="263" bgcolor="#333333"><span class="Estilo18">Cantidad</span></td>
</tr>
</table>

<?php
$p1=1;
$p2=2;
$p3=3;
$p4=4;
$p5=5;
$p6=6;
$p7=7;
$p8=8;
$p9=9;
$p10=10;
$p11=11;
$p12=12;
$p13=13;
$p14=14;
$p15=15;
$p16=16;
$p17=17;
$p18=18;
$p19=19;
$p20=20;
$p21=21;
$p22=22;
$p23=23;
$p24=24;
$p25=25;
$p26=26;
$p27=27;
$p28=28;
$p29=29;
$p30=30;
$p31=31;
$p32=32;
$p33=33;
$p34=34;
$p35=35;
$p36=36;
$p37=37;
$p38=38;
$p39=39;
$p40=40;


?>

<?php if ($menubasico>0) {?>
<table width="800" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#999999">
<tr>
<td width="186"> <span class="Estilo11"> <?php
$result1=mysql_query('SELECT producto,descripcion FROM productos WHERE id="'.$p1.'"',$link);
$riw = mysql_fetch_array($result1);
?>

<?php echo $riw['producto']?>
</td>
<td> <span class="Estilo11"> <?php echo utf8_encode ($riw['descripcion']);?> </span></td>
<td width="262" align="center" class="Estilo11"><?php echo $menubasico?> </td>
</tr>
</table>

<?php }?>