Gossamer Forum
Home : Products : DBMan : Discussions :

Wierd space in last Database field

Quote Reply
Wierd space in last Database field
Hey guys,
I had a database with fields from 0 - 13, then I decided I needed 2 more fields, so I add the following fields to the default.cfg file:

iURL3 => [14,'alpha',35,80,,'', '^http://'],
iURL4 => [15,'alpha',35,80,,'', '^http://']

I knew that when I added these fields that I'd have to add two more delimeters to the end of each database entry to make up for the additional fields.

So I went through the entire default.db file and add || to the end of each entry. Now I have a problem that the last field (Field number 15) always shows up as a space when I call it by: $rec{'iURL4'}. I don't know what is causing this, I've tried uploading the database back up in ascii and binary, and I've tried converting the file to unix and dos, but I can't get rid of this "phantom" last space. Any ideas would be greatly appreciated!
Quote Reply
Re: [tigz] Wierd space in last Database field In reply to
Not sure but it could be how you have the fields defined?

Try using:

iURL3 => [14,'alpha',35,80,0,'', '^http://'],
iURL4 => [15,'alpha',35,80,0,'', '^http://']

This is assuming the fields are not required. Since you left out that portion of the definition it could have caused problems?


Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [tigz] Wierd space in last Database field In reply to
I had the exact same problem with a space appearing in the last field. It was a numeric field.

I eliminated it by forcing a hidden value of "" to be entered.