Weight Loss Dieter's Digest

Caloric Value Of Foods Search

Open foodValues database and index the data by the description(desc) column In order to pass data to the script we need to use a form tag and post the input "food" from the user to the script. In this case it is the same URL as the input field.
Take the value passed from the form field and assign it a name and then convert text to upper case. All descriptions in database are in uppercase. Mavica searches are always case sensitive If the input field is blank or this is the first enter into the page, close the db connection Otherwise filter the database by the input field. This will look for the term in any part of the description field. This will print to the screen the column headings This will format and print to the screen the current record that is found by the filter command. The MvSKIP command will skip to the next record and the process will continue until end of record is met
Food Description
Calories
Protein
Fats
Carbs

Home    Exercise Calories   Teen Weight Loss   Glycemic Index    Weight Control Research    

Weight Control For Children    Questionable Weight Loss Products    Calorie Table    Newsletters

Message Board    
Calorie Counter    Free Newsletter

© 2002 Weight-Loss-Dieters-Digest.com All Rights Reserved