Hi all, Following on from my post about php checkboxes, this is what I'm trying to do:
Recipe ingredients are added to the database along with the recipe book, recipe name and some other information. Recipes are selected from a list of check boxes in the format Recipe Name [] and are then sent to a script that will generate the shopping list. The problem I have is that I can't get my head around the code to do the following: 1. Get the information about the recipe from the database 2. Add together the quantities needed of each ingredient for each recipie 3. Display the total amount of each ingredient needed next to the ingredient name for example, if I have two chicken dishes, one requiring 500g of chicken and another requiring 250g, the page should display: Chicken - 750g If people can point me in the right direction, that would be great as I'm struggling at the moment! I plan to get it listed on sourceforge.net so I'd include you in the credits if you solve this problem for me! :) Cheers, Matt -- -- Matthew Macdonald-Wallace [EMAIL PROTECTED] "Quis custodiet ipsos custodes?" ____ � The WDVL Discussion List from WDVL.COM � ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or use the web interface http://e-newsletters.internet.com/discussionlists.html/ Send Your Posts To: [email protected] To change subscription settings, add a password or view the web interface: http://intm-dl.sparklist.com/read/?forum=wdvltalk ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with.
