aver si me pueden echar la mano soy algo novato por lo que podran ver
tengo en pedido.php
Código PHP:
$consulta= "SELECT * FROM datos ORDER BY Nombre";
$query= mysql_query($consulta, $link);
while($row = mysql_fetch_array($query)) {
$y=$row[id];
echo "<tr><td><input type=checkbox value=$x[$y] /></td>";
printf("<td> %s</td><td> %s</td><td> %s </td></tr>",$row["Nombre"],$row["unidades"],$precio*$row["unidades"]);
}
asi tengo en el otro php de cotizacion
Código PHP:
$i=1;
while($row = mysql_fetch_array($query)) {
if ($x[$i]=true){
$sumatotal=$row["unidades"] + $sumatotal;
$preciototal=$precio*$row["unidades"] +$preciototal;
printf("<tr><td> %s</td><td> %s</td><td> %s </td></tr>",$row["Nombre"],$row["unidades"],$precio*$row["unidades"]);
}
$i=$i+1;
}
saludos y gracias