Your php code is a basic mess:
You end many statements with '?' instead of ';',
such as: <input type="text" name="jan" size="1" value="jan?>">
You also have incomplete ?: conditionals,
$data):?>
At first I thought this to be an odd font translation but as ";" end some statements at the bottom of your query and some that aren't even part of php (maybe VB or something) I realize it's just in need of your learning php that's the problem.
Try:
PHP Tutorial^