Gossamer Forum
Home : Products : DBMan : Installation :

need help

Quote Reply
need help
I got DBman up and running after fighting apache for a day or so...

Now it works!

BUT- AS SOON AS A CHANGE THE CONFIG FILE - POOF it breaks.

IS there anything wrong with this???

%db_def = (
ID => [0, 'numer', 5, 8, 1, '', ''],
Description => [1, 'alpha', 40, 255, 1, '', ''],
Customer => [2, 'alpha', 40, 255, 1, '', ''],
Priority => [3, 'alpha', 0, 60, 1, '', ''],
Opened => [4, 'date', 12, 15, 1, &get_date, ''],
RequiredBy => [5, 'date', 12, 15, 1, '', ''],
Notes => [6, 'alpha', '40x3', 500, 0, '', ''],
Completed => [7, 'alpha', 0, 3, 1, 'No', 'Yes|No'],
CompletedOn => [8, 'alpha', 0, 3, 0, '', ''],
Assigned to => [9, 'alpha', 40, 255, 1, '', '']
);

# 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 = 1;
# Display Benchmarking Information (1 = Yes, 0 = No).
$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 = (
Priority => 'Emergency,High,Medium,Low',
);

# Radio fields. Field name => comma seperated list of radio buttons.
%db_radio_fields = ( Completed => 'Yes,No' );

# Checkbox fields. Field name => Checkbox value.
%db_checkbox_fields = ( CompletedOn => 'Yes' );



i apoligize for posting the code here, but i am hosting this on an internal webpage.
Quote Reply
Re: [mabel] need help In reply to
SmileFixed all my problems...

the trick is too change things one at a time! sounds horrible, but it is worth it....