Thanks m8, you're about to save the world...Here is the code:
table_row_open();
echo " row open ";
table_data($home['team_name'], "center");
echo " home ";
table_data($away['team_name'], "center");
echo " away ";
table_data(strftime('%a %d-%m-%y', $curr_date), "right");
echo " stadium ";
table_row_close();
echo " row close ";
Lets say, if I generate fixtures for 6 teams it will stop at fixture 91 before it geets to echo row close...
all table_row_close() does is echo "</tr>\n";