Post your code in [noparse]
[/noparse] bbcode tags and invest in a text editor or integrated development environment that has syntax highlighting for PHP code (sdome are available at zero price). You would then be better able to spot mistakes like the lack of a double quote on this line to end the string literal:
$query = "INSERT INTO order VALUES('', $name, $bread, $meat, $cheese, $toasted, $veggieList, $sauceList, $herbList);