Re: Dollar amount
| From: | JJeffman | Date: | Fri, 15 Dec 2000 21:22:46 +0000 |
| Subject: | Re: Dollar amount | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-5279@lists.php.net to get a copy of this message | ||
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@rccd.cc.ca.us>
Para: <php-db@lists.php.net>
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@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>