Quote: "char inventory[20]
instead of being able to enter records into 20 fields it only allows 20 characters to be typed in the inventory variable. Am I missing something."
What you declared is an array of 20 characters. That means only 20 characters. Before I go on I will issue the standard warning that the programmer is generally responsible for providing enough storage space for the data he/she needs. Using strings alleviates this a bit but increases the learning curve. My rule is to err on the side of excess and reserve more space than I think I'll need since user input could go wild.
Do do what you want to do is something like this.
char inventory [20][50];
Which essentially sets up an array of 20 character arrays of size 50 characters each. In order to, say, copy some text into the fifth element of the array you do something like:
strcpy (inventory [4], "Flying Fickle Finger of Fate");
and to print it out would be
dbPrint (inventory [4]);
Lilith, Night Butterfly
I'm not a programmer but I play one in the office