php-db | 2000121
Date: 12/15/00
- Next message: JJeffman: "Re: [PHP-DB] Tables"
- Previous message: Matthew Ballard: "Re: [PHP-DB] Fetching (and displaying) the 3 newest items from MySQL"
- In reply to: Julio Cuz, Jr.: "[PHP-DB] Dollar amount"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: JJeffman: "Re: [PHP-DB] Tables"
- Previous message: Matthew Ballard: "Re: [PHP-DB] Fetching (and displaying) the 3 newest items from MySQL"
- In reply to: Julio Cuz, Jr.: "[PHP-DB] Dollar amount"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

