Hi, again. I searched the forum, the unnoficial pages and even your suggestion, but for some reasons it does not seem to work.
This is what I got:
1. on my html_page_top, I've included a little "niche" for the categories, (heres' the code):
...
<body bgcolor="white" text="black" leftmargin="4" topmargin="4" marginwidth="4" marginheight="4" link="#660000" vlink="#990000" onload="CSScriptInit();">
|;
if ($rec{'Category'} eq 'Tenor') {
print qq|<p>Tenors</p>|;
}
if ($rec{'Category'} eq 'Baritone') {
print qq|<p>Baritones</p>|;
}
if ($rec{'Category'} eq 'Designer') {
print qq|<p>Designers</p>|;
}
print qq|
...
For some reason, however, it does not seem to work. I took another person's advice (from the unnoficial site) and substituted the $rec for $in, but still not able to see anything. I don't get an error, just blank space.:(
Here's my config file,...maybe that will help:
code:
...
# Database Definition
# --------------------------------------------------------
# Definition of your database. Format is
# field_name => ['position', 'field_type', 'form-length', 'maxlength', 'not_null', 'default', 'valid_expr']
%db_def = (
ID => [0, 'numer', -1, 8, 1, '', ''],
FirstName => [1, 'alpha', 40, 255, 1, '', ''],
LastName => [2, 'alpha', 40, 255, 1, '', ''],
Specialty => [3, 'alpha', 40, 255, 0, '', ''],
Bio => [4, 'alpha', '40x5', 5000, 0, '', ''],
Curriculum => [5, 'alpha', '40x5', 5000, 0, '', ''],
Repertoir => [6, 'alpha', '40x5', 5000, 0, '', ''],
Homepage => [7, 'alpha', 40, 255, 0, 'http://', ''],
Photos => [8, 'alpha', 40, 255, 0, 'http://www.funkhouserartists.com/cgi-bin/gallery/gallery.cgi?Category=', ''],
Photos2 => [9, 'alpha', 40, 255, 0, 'http://www.funkhouserartists.com/cgi-bin/gallery/gallery.cgi?Category=', ''],
Date => [10, 'date', -2, 15, 1, &get_date, ''],
Category => [11, 'alpha', 0, 255, 1, '', ''],
Userid => [12, 'alpha', -2, 15, 0, '', ''],
Email => [13, 'alpha', 40, 255, 0, '', ''],
Filename => [14,'alpha',0,255,0,'',''],
Active=> [15, 'alpha', -1, 3, 0, 'Yes', 'Yes|No'],
CommName1 => [16, 'alpha', 40, 255, 0, '', ''],
CommUrl1 => [17, 'alpha', 40, 255, 0, 'http://', ''],
CommName2 => [18, 'alpha', 40, 255, 0, '', ''],
CommUrl2 => [19, 'alpha', 40, 255, 0, 'http://', ''],
CommName3 => [20, 'alpha', 40, 255, 0, '', ''],
CommUrl3 => [21, 'alpha', 40, 255, 0, 'http://', ''],
CommName4 => [22, 'alpha', 40, 255, 0, '', ''],
CommUrl4 => [23, 'alpha', 40, 255, 0, 'http://', ''],
CommName5 => [24, 'alpha', 40, 255, 0, '', ''],
CommUrl5 => [25, 'alpha', 40, 255, 0, 'http://', ''],
CommName6 => [26, 'alpha', 40, 255, 0, '', ''],
CommUrl6 => [27, 'alpha', 40, 255, 0, 'http://', ''],
CommName7 => [28, 'alpha', 40, 255, 0, '', ''],
CommUrl7 => [29, 'alpha', 40, 255, 0, 'http://', ''],
CommName8 => [30, 'alpha', 40, 255, 0, '', ''],
CommUrl8 => [31, 'alpha', 40, 255, 0, 'http://', ''],
CommName9 => [32, 'alpha', 40, 255, 0, '', ''],
CommUrl9 => [33, 'alpha', 40, 255, 0, 'http://', ''],
CommName10 => [34, 'alpha', 40, 255, 0, '', ''],
CommUrl10 => [35, 'alpha', 40, 255, 0, 'http://', '']
);
# The column name for the database key. Can be any column, but it must be unique!
# You can't have two records with the same key value!
$db_key = 'ID';
# Track the key? Should DBMan keep a counter of the next key to use? This isn't
# neccessary if you can guarantee that your entry in the key field will be unique
# (i.e. a userid).
$db_key_track = 1;
# Database delimeter.
$db_delim = '|';
# Use file locking (1 = Yes, 0 = No). Should be used, but won't work on Win95.
$db_use_flock = 1;
# Auto generate the html forms (1 = Yes, 0 = No).
$db_auto_generate = 0;
# Display Benchmarking Information (1 = Yes, 0 = No).
# use Benchmark; # Uncomment this line if benchmarking is used.
$db_benchmark = 0;
# Display Debugging Information (1 = Yes, 0 = No).
$db_debug = 0;
# Select fields. Field name => 'comma seperated list of drop down options'.
%db_select_fields = (
Category => 'Soprano,Mezzo-Soprano,Contralto,Countertenor,Tenor,Baritone,Bass-Baritone,Conductor,Composer,Stage Director,Designer,Narrator,Ensemble,Special Attraction,Instrumentalist'
);
...
Once again, I would be eternelly thankful for ANY feedback ;)
Thanks in advance :)
L.