Fw: botiga

From: Date: Thu, 30 Sep 2004 10:26:25 +0000
Subject: Fw: botiga
Groups: php.general.es 
Request: Send a blank email to general-es+get-51566@lists.php.net to get a copy of this message
Hola estoy configurando una tienda y no se porque me da el resultado en pesetas, estoy un poco desesperada porque no encuentro el fallo y llevo con ello mas de un mes. Por favor alguien me podria decir donde esta el fallo? este es el código de la pagina <html> <head> <title>confirmar pedido</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <?php if ($order) { include 'serverbd.php'; $Tablename="pedidos"; $Link=mysql_connect($Host,$User,$Password); $Query="Select * from $Tablename where IDPedido=".$order; $Result=mysql_db_query($DBName,$Query,$Link); $Reg=mysql_fetch_array($Result); $Total=$Reg[Anunci1]*20; $Total=($Reg[Anunci2]*50)+$Total; $Total=$Total*100; $Quantitat=$Reg[Anunci1]+$Reg[Anunci2]; $Productes=0; $Detall=""; if($Reg[Anunci1]>0) { $Productes=$Productes+1; $Parcial1=$Reg[Anunci1]*20; $Parcial1=$Parcial1*100; $Detall=$Detall."1<br>Anuncio 20 Euros<br>$Reg[Anunci1]<br>$Parcial1<br>"; } if($Reg[Anunci2]>0) { $Productes=$Productes+1; $Parcial2=$Reg[Anunci2]*50; $Parcial2=$Parcial2*100; $Detall=$Detall."2<br>Anuncio 50 Euros<br>$Reg[Anunci2]<br>$Parcial2<br>"; } print("M978".$Total."<br>$Quantitat<br>$Detall"); } else { ?> <form method="post" action="https://tpv.4b.es/tpvv/teargral.exe"> <input type=hidden name=order value="1"> <input type=hidden name=store value=PI00003605> <center><input type=submit name=enviar value=Continuar></center> </form> <?php } ?> </body> </html> //este es el resultado que ve el banco <html> <head> <title>confirmar pedido</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> M9782000<br>1<br>1<br>Anuncio 20 Euros<br>1<br>2000<br></body> </html>

« previous php.general.es (#51566) next »