Re: problemas tpv

From: Date: Fri, 03 Sep 2004 18:07:45 +0000
Subject: Re: problemas tpv
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-51170@lists.php.net to get a copy of this message
prueba a no poner nada de html, que el código fuente sea del tipo: M97818096<br>1<br>ID99<br>Compras en comercio<br>1<br>1740000<br> Saludos, Álvaro "Ana" <inkana@wanadoo.es> escribió en el mensaje news:003c01c490c4$4d405cf0$08e36650@annajumz84y0g1... Por favor, necesito vuestra ayuda: Sigo teniendo problemas con el tpv de 4b este es el codigo de la pagina que uso, he puesto un pedido ya fijo para hacer las pruebas ( el 1), el codigo es un poco chapuza pero es que ya no se que hacer para probar, siempre me dice error de datos, y en el log dice que mando el importe en pessetas ( 0 pta para se exacto por lo tanto tampoco coge bien los numeros) ,si alguien sabe que les mando mal que me lo diga, si quereis ver lo que se escribe en la pagina entrad por http://www.compraventaparticulares.com/botiga/proba.php?order=1&store=PI00003605 Si no me he equivocado esta en el formato que pide <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> Gracias por vuestra ayuda Ana

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