JPdeni,
I have another one for you. My option fields are not coming up as a select box. I have two...one is size and the other is color. in the field there are various levels of colors and size...another words one size field will have three options another will have four. and color is the same way. I set it up with the largest number of options available. here is the section on the option fields.
--------------------------
%db_def = (
'ProductID' => [ 0, 'alpha', 20, 255, 0, '', ''],
'OrderID' => [ 1, 'alpha', -1, 255, 0, '', ''],
'Category' => [ 2, 'alpha', -1, 255, 0, '', ''],
'Subcategory' => [ 3, 'alpha', -1, 255, 0, '', ''],
'Name' => [ 4, 'alpha', 20, 255, 0, '', ''],
'Description' => [ 5, 'alpha', '60x10', 1000, 0, '', ''],
'Image' => [ 6, 'alpha', 20, 255, 0, '', ''],
'Cost' => [ 7, 'numer', -1, 10, 0, '', ''],
'Price' => [ 8, 'numer', 10, 10, 0, '', ''],
'Size' => [ 9, 'alpha', 0, 8, 0, 'Option1', ''],
'Color' => [10, 'alpha', 0, 8, 0, 'Option1', ''],
'Date' => [11, 'alpha', -1, 255, 0, '', '']
);
# 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 = 'ProductID';
# 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 = 0;
# 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 = (
'Size' => 'Option1,Option2,Option3,Option4,Option5,Option6,Option7,Option8,Option9,Option10',
'Color' => 'Option1,Option2,Option3,Option4,Option5'
);
It only displays the list and not an option box.
Queticon
I have another one for you. My option fields are not coming up as a select box. I have two...one is size and the other is color. in the field there are various levels of colors and size...another words one size field will have three options another will have four. and color is the same way. I set it up with the largest number of options available. here is the section on the option fields.
--------------------------
%db_def = (
'ProductID' => [ 0, 'alpha', 20, 255, 0, '', ''],
'OrderID' => [ 1, 'alpha', -1, 255, 0, '', ''],
'Category' => [ 2, 'alpha', -1, 255, 0, '', ''],
'Subcategory' => [ 3, 'alpha', -1, 255, 0, '', ''],
'Name' => [ 4, 'alpha', 20, 255, 0, '', ''],
'Description' => [ 5, 'alpha', '60x10', 1000, 0, '', ''],
'Image' => [ 6, 'alpha', 20, 255, 0, '', ''],
'Cost' => [ 7, 'numer', -1, 10, 0, '', ''],
'Price' => [ 8, 'numer', 10, 10, 0, '', ''],
'Size' => [ 9, 'alpha', 0, 8, 0, 'Option1', ''],
'Color' => [10, 'alpha', 0, 8, 0, 'Option1', ''],
'Date' => [11, 'alpha', -1, 255, 0, '', '']
);
# 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 = 'ProductID';
# 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 = 0;
# 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 = (
'Size' => 'Option1,Option2,Option3,Option4,Option5,Option6,Option7,Option8,Option9,Option10',
'Color' => 'Option1,Option2,Option3,Option4,Option5'
);
It only displays the list and not an option box.
Queticon