Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/10/2008, 13:13
los_ganers
 
Fecha de Ingreso: diciembre-2007
Mensajes: 167
Antigüedad: 16 años, 4 meses
Puntos: 0
Ayuda con multiplicacion

AMIGOS TENGO ESTE SIETEMA




LA CONSULTA LA HAGO DE ESTA FORMA

Código PHP:
<?
include("conexion.php");
$result=mysql_db_query($db,"select * from producto where bode='Puerto Montt'") or die (mysql_error());
while (
$row=mysql_fetch_array($result))
{

?>
Código PHP:
<? echo $row["cantidad"];?>
Código PHP:
<? echo $row["precio"];?>

QUIERO QUE EN LA COLUMNA TOTAL ME DE EL PRECIO UNITARIO MULTIPLICADO POR LA CANTIDAD:

EJEMPLO:

10 GUANTES ...QUE CUESTAN 50.....TOTAL $500

PORFA AYUDA