Gossamer Forum
Home : Products : DBMan : Discussions :

Ű_def problems

Quote Reply
Ű_def problems
Could anyone tell me where are the syntax error in this variable?
%db_def = (
ID => [0, 'numer', 5, 8, 1, '', ''],
Pseudo => [1, 'alpha', 0, 30, 1, '', ''],
Nom => [2, 'alpha', 40, 255, 1, '', ''],
Prénom => [3, 'alpha', 40, 255, 1, '', ''],
Age => [4, 'numer', 0, 4, 1, '', ''],
ICQ => [5, 'numer', 5, 8, 1, '', ''],
Clan => [6, 'alpha', 0, 60, 1, '', ''],
Région => [7, 'alpha', 12, 15, 1, '', ''],
Site_web => [8, 'alpha', 40, 255, 1, 'http://', '^http://'],
Description => [9, 'alpha', '40x3', 500, 1, '', ''],
Jeux => [10, 'alpha', '40x3', 500, 1, '', ''],

);


Excuse my english, I'm from Switzerland, thank you for your advices!

Quote Reply
Re: Ű_def problems In reply to
What error message are you receiving when you turn debugging on?

I'm not sure if this is causing the problems, but you may want to not use special characters in your field names such as:

Prénom
Région

You will also want to remove the comma at the end of the last line:

Jeux => [10, 'alpha', '40x3', 500, 1, '', '']

Hope this helps.

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: Ű_def problems In reply to
I don't know whether what I'm going to say is helpful but I hope it helps. First of all, I too have a comma at the end of the last line and my database is working fine. So I don't think that is the problem. However, I don't know whether having special characters will cause the database to malfunction. I don't have special characters in my default.cfg. Thirdly, I put quotation marks on the ends of my field names. For example,

'ID' => [0, 'alpha', 20, 255, 1, '', ''],
'Date' => [.........],
and so on.

Hope you figure what's wrong.

Julian