Ahh, I think I get it now.
What you'd like to do is only display a table row if the horse raced during that age?
In that case, in your
html_record sub-routine, you would do something like the following:
print qq|<table>|;
print qq|<tr><td>Age 2 information...</td></tr>| if ($rec{'Age2'} ne '0');
print qq|<tr><td>Age 3 information...</td></tr>| if ($rec{'Age3'} ne '0');
print qq|<tr><td>Age 4 information...</td></tr>| if ($rec{'Age4'} ne '0');
print qq|<tr><td>Age 5 information...</td></tr>| if ($rec{'Age5'} ne '0');
... etc ...
print qq|</table>|;
Now, this is just a guideline. I haven't seen your database structure or html.pl so I can't be sure exactly how you would set up the conditions... But basically, it sounds like you just need to set up some conditional rows. In my example above, each row will only print if the field
AgeX does not equal "0".
Obviously you will need to fiddle with it a bit. If you're still stuck and don't mind posting your
default.cfg and
html.pl file in a web accessible area, we can check them out and might be able to get a better idea of what you're trying to do.
Good luck!
- Mark
Astro-Boy!!
http://www.zip.com.au/~astroboy/