CEGlobe,
Quote:
#1 - How do you make reference to a filed in categories.db in site_html.pl?
A lot depends on where in site_html.pl you mean. In sub site_html_category, the fields are predefined for you (see the comments at the top of the routine). In sub site_html_print_cat, you can use the form "@{$category{$subcat}}[x]" where "x" is the field number as defined in category.def (the first field, ID, is "0").
Quote:
#2 - Is it possible to have for an if clause, two conditions? If so, how would you do this.
You can use many different forms:
Both something and something_else must be true (&& = logical and).
if ( (something) && (something_else) ) { do this; }
or
if ( (something) and (something_else) ) { do this; }
Either something or something_else must be true (| | = logical or). Note that this BBS is putting a blank space between the "| |" but it should not be there in your code.
if ( (something) | | (something_else) ) { do this; }
or
if ( (something) or (something_else) ) { do this; }
if (something)
{ do this; }
elsif (something else)
{ do that; }
else
{ do another_thing; }
The "else" part of the above statement is optional. Some folks use:
else { }
I hope this helps.
------------------
Bob Connors
bobsie@orphanage.com www.orphanage.com/goodstuff/ goodstufflists.home.ml.org/ [This message has been edited by Bobsie (edited January 07, 1999).]