Gossamer Forum
Home : Products : DBMan : Customization :

Delimited DB file

Quote Reply
Delimited DB file
Is it possible to modify DBMan to read DB files in a different format

eg

rather than using
value|value|value

could it be set to read
"value","value","value"
Quote Reply
Re: Delimited DB file In reply to
Yes you can. Change the delimiter in the default.cfg file.

# Database delimeter.
$db_delim = '|';

to

# Database delimeter.
$db_delim = ',';

Do you want the quotations as a delimter as well?

# Database delimeter.
$db_delim = '\",\"';

Not sure if that will work or not but if you add the quotes you will probably have to escape them with the \.

Mike
Quote Reply
Re: Delimited DB file In reply to
I would take out the quotes. For one thing, I don't know how you could get

"value","value","value"

With Mike's suggestion, you could probably get

value","value","value

but there wouldn't be quotes on the ends.


------------------
JPD