Gossamer Forum
Home : Products : Links 2.0 : Discussions :

LinksID.txt question

Quote Reply
LinksID.txt question
Question: Does Links 2.0's linksid.txt store the number of the last link in the links.db THEN increment before it writes to it?

OR: does linksid.txt contain the number of the last links.db entry +1, then simply use that number when it writes the next entry...?



------------------
Wayne Hunt
Amiga.org
http://www.amiga.org


Quote Reply
Re: LinksID.txt question In reply to
The linksid.txt file contains the highest ID number already used in Links. When a new record is added, either by the admin or a user, that number is obtained by the script, incremented by 1 (the new number is assigned to the new link) and then written back to linksid.txt.

I hope this helps.