Unable to connect to database at this time.
'); } if(isset($_GET['send'])) { $usercalorie = htmlspecialchars($_GET['usercalorie']); $actualcalorie = htmlspecialchars($_GET['actualcalorie']); $foodid = htmlspecialchars($_GET['foodid']); $image = htmlspecialchars($_GET['image']); //insert into 'SUBMIT' the $actualcalorie and $foodid $sql = "INSERT INTO submit SET foodid='$foodid', usercalorie='$usercalorie', date=now()"; if (@mysql_query($sql)) { } else { exit('error adding to rankings table: ' . mysql_error() . '
'); } } $query = "SELECT * FROM food LIMIT 1"; $result = @mysql_query("$query") or die('There was an unexpected error grabbing studies from the database.
'); //get the food pictures and calorie counts from the database while ($row = mysql_fetch_array($result)) { $foodid = stripslashes($row['ID']); $actualcalorie = stripslashes($row['actualcalorie']); $image = stripslashes($row['image']); $description = stripslashes($row['description']); } echo $description; echo "NYC law requires restaurants with over 10 locations to label their menus with calorie