Gossamer Forum
Home : Products : DBMan : Installation :

Value of Null

Quote Reply
Value of Null
Also can the null record be removed from the dbase, as it cannot be searched or modified?
Quote Reply
Re: [jonno] Value of Null In reply to
Null?

Can't be modified?

Last edited by:

RedRum: Oct 1, 2001, 4:35 AM
Quote Reply
Re: [RedRum] Value of Null In reply to
The first record added to the dbase through dbman starts with the id of NULL which cannot be searched etc
Quote Reply
Re: [jonno] Value of Null In reply to
Quote:
The first record added to the dbase through dbman starts with the id of NULL

No it doesn't. Starts with 1.
Quote Reply
Re: [RedRum] Value of Null In reply to
This is the entry from the dbase
NULL|Dummy Record|Testing only|jon Baxter|http://www.scream.co.uk|01-Oct-2001|NULL
1|Another Test|Testing here|jb|NULL|01-Oct-2001|NULL
2|news news news|roll up rollup````read all about it|michelle|NULL|01-Oct-2001|1


the count file automatically resets itself, even if i change the log file to a different number. Am i doing something wrong?
jon
Quote Reply
Re: [jonno] Value of Null In reply to
When you say null do you mean the actual word NULL or an emtpy space?

Either way this isn't normal so it is either your servers fault of you have done something in the files.

Have you tried installing a fresh copy?
Quote Reply
Re: [jonno] Value of Null In reply to
Yes, I would also have to ask what version of the script you are using.
I remember mention of one an early version using null.

In your .cfg file you will want to set:

# The column name for the database key. Can be any column, but it must be unique! You can't have two records with the same key value!
$db_key = 'ID';

# Track the key? Should DBMan keep a counter of the next key to use? This isn't neccessary if you can guarantee that your entry in the key field will be unique (i.e. a userid).
$db_key_track = 1;

To both define the field used for the counter and then activate it.



Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] Value of Null In reply to
Thankyou all, problem sorted I was using version 2.01, haha i hear you cry. Thankyou all