Gossamer Forum
Home : Products : DBMan : Customization :

Adding Fields..plz help

Quote Reply
Adding Fields..plz help
at these fields%db_def = (
ID => [0, 'numer', 5, 8, 1, '', ''],
Title => [1, 'alpha', 40, 255, 1, '', ''],
URL => [2, 'alpha', 40, 255, 1, 'http://', '^http://'],
Type => [3, 'alpha', 0, 60, 1, '', ''],
Date => [4, 'date', 12, 15, 1, &get_date, ''],
Category => [5, 'alpha', 0, 255, 1, '', ''],
Description => [6, 'alpha', '40x3', 500, 0, '', ''],
Validated => [7, 'alpha', 0, 3, 1, 'Yes', 'Yes|No'],
Popular => [8, 'alpha', 0, 3, 0, '', ''],
Userid => [9, 'alpha', -2, 15, 0, '', '']
);

===============
could someone plz tell me how i would go about adding extra fields and changing names of the defualt fields? maybe i've over looked them, but i can't seem to find the list of arrays in the scripts... i'm use to adding the arrays in a subroutine to match the fields... {{ if someone would let me know where all i gotta edit the script to add 1 more field example=(field10 => [10, 'alpha', -2, 15, 0, '', '']
);

i can go from there lol tx a bunch in advance i'm into my 4th week of studying perl any help would be greatly appreciated :))


Quote Reply
Re: Adding Fields..plz help In reply to
Hi tcoReDNeck,

You might want to wizz by the DBMAN CONFIGURATOR at this URL:

http://www.jpdeni.com/dbman/

You can use it to define your fields (and a lot more) and then copy the resulting txt into your dbman files.

Kind regards

PhilO

Quote Reply
tx , i'll give it a whirl :)) In reply to
tx