php-db | 2000121

Re: [PHP-DB] Dollar amount From: JJeffman (jjeffmanweb <email protected>)
Date: 12/15/00

Almost the same code used in JavaScript can be applied to php. You have to
get the products your customer bought and make a while loop on the items
sold, calculate the sub-totals, format them as currency and print them in a
html table.
The "Professional PHP Programming" book has a very simple Shopping Cart
example that I think you should have a look.

HTH.

Jayme.

http://www.conex.com.br/jjeffman

-----Mensagem Original-----
De: Julio Cuz, Jr. <jcuz <email protected>>
Para: <php-db <email protected>>
Enviada em: sexta-feira, 15 de dezembro de 2000 16:56
Assunto: [PHP-DB] Dollar amount

> Hi--
>
> Does anyone have a sample where you use a table to sell items (for
> example)? I would like to have a "items" colum, "number of items", "item
> price" and a "sub-total"....WITHOUT Java or VBScript.....straight
> PHP....anyone?
>
> P.S. The "sub-total" values should be updated on the fly.
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe <email protected>
> For additional commands, e-mail: php-db-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>