Prueba así espero te sirva...
Código PHP:
// imprimes el encabezado
echo "<table border = '1'>";
echo "<tr>";
echo "<td><b>Producto</b></td>";
echo "<td><b>Cantidad</b></td>";
echo "<td><b>Precio</b></td>";
echo "<td><b>Total</b></td>";
echo "<td><b>Precio Total</b></td>";
echo "</tr>";
// fijas en cero el monto del total y el itinerador de filas
$acum=0;
$itineradorFilas=0;
$sql="SELECT Producto,Cantidad,Precio FROM productos";
$result=mysql_query($sql,$link);
$cantidadDeLineas=mysql_num_rows($result);
while ($row = mysql_fetch_array($result)){
if($itineradorFilas<$cantidadDeLineas){ // si el itinerador de filas es menor que la cantidad de filas en la tabla imprimes con esa celda en 0
echo "<tr>";
echo "<td>".$row["Producto"]."</td>";
echo "<td>".$row["Cantidad"]."</td>";
echo "<td>".$row["Precio"]."</td>";
echo "<td>".$row["Precio"]*$row["Cantidad"]."</td>";
echo "<td></td>";
echo "</tr>";
$acum=$acum+($row["Precio"]*$row["Cantidad"]);
$itineradorFilas=$itineradorFilas+1;
}else{ // si es la ultima fila (itinerador de filas=cantidad de filas) imprimes el precio acumulado
echo "<tr>";
echo "<td>".$row["Producto"]."</td>";
echo "<td>".$row["Cantidad"]."</td>";
echo "<td>".$row["Precio"]."</td>";
echo "<td>".$row["Precio"]*$row["Cantidad"]."</td>";
$acum=$acum+($row["Precio"]*$row["Cantidad"]);
echo "<td>".$acum."</td>";
echo "</tr>";
}
}
// cierras tu tabla
echo "<a href='login.php'>Volver atrás</a>";
echo "</table>";