Gossamer Forum
Quote Reply
ID problem
As I describe in http://www.gossamer-threads.com/scripts/forum/resources/Forum3/HTML/001844.html I have a problem. Suddenly, my admin section has problems finding data. 'Add' doesn't show an ID. Search problems too.

I obviously messed up something - what? Any ideas? Please. Let me know which files can have the source of the problem, so I can upload them as txts.

John
Quote Reply
Re: ID problem In reply to
Anyone? Please, please please!

I've uploaded db_utils etc as txt here: http://www.shn.dk/links

John
Quote Reply
Re: ID problem In reply to
You might try checking your links database. Sometimes, if one entry gets corrupted it can mess up everything.
Aaron

[This message has been edited by Aaron (edited June 16, 1999).]
Quote Reply
Re: ID problem In reply to
Aaron,

Thanks for the suggestion. That was/is unfortunately not the problem. I removed all records to check this, and working with empty links.db etc gives the same result.

Any ideas?

John
Quote Reply
Re: ID problem In reply to
I found the problem :-)

In links.def I had set $db_key = 0; in the list of important field names. That appearently messes up things. Changing to $db_id = 0; solved the problem. The reason I defined this is that I set $db_sort_links = 0; and thought it necessary to define the field name.

I'm an engineer, and believe in the principle 'if it aint broken, don't fix it', so I'm happy now ... I do, however, want to learn how things work, and repreat the question I raised sometime ago somewhere:
What does
# Use the built in key tracker.
$db_key_track = 1;
actually do?

John