I have built an availability calender, which connects to a database and checks the fileds. If the field has nothing in it then 1 is displayed. If the field has the word check in it then 1 is displayed in bold with a strikethrough. I copied this statment below upto december 31st which was a lot of hard work. Is there any of producing this in a loop? i.e so it goes jan1,jan2,jan3 and so on upto dec 31st, without having to produce this statment everytime by sadly copying and pasting and changing the number and month?
<? if ($jan1==''){ ?><p align="center">1
<? } elseif ($jan1=='check') { ?>
<strong><s><p align="center">1</s></strong><s>
<? } ?>