Hi Todd
I made some changes to your otherwise very neat recipe program. I found the inout of recipes a bit heavy when it came to the ingredients. Basically I think the machine should be understanding me, rather than me (or the wife!) understanding it. So what I did was to remove the rigid ingredient input method and instead have the PC parse the ingredients as one would normally write them: "30ounce wheat" or "3 liters water", the script then parses this into the three fields needed and there you go.
Later I'll want to add an "I'll tell you whats in my fridge/freezer and you tell me what I can make"-function. Shouldn't be too hard. Random 1 week dinner plans with shopping list etc. should also be within range due to your clever arrangement of the database.
If you want the changes I did so far, please look at the attachments. I changed the addrecipe.php, editrecipe.php, and added a function to functions.php to find/add a unit.
Also a bitmap is missing in one of the files.. Looks like a GIF image changed to a PNG.
Best regards,
Kim Poulsen, Denmark
poulsen dot kim at gmail dot com
Changes files
Logged In: NO
Oh, at line 334 in editrecipe.php, the CheckIngredients call must be removed also...