forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: ^SuPeR^ on January 16, 2007, 11:50:32 am

Title: How position ID is assigned to a photo?
Post by: ^SuPeR^ on January 16, 2007, 11:50:32 am
Hi,
it possibile to know how position is assigned to a photo?
So
displayimage.php?album=lastup&cat=0&pos=0
position is incremental but for this
displayimage.php?pos=-xxx
?
Thanks
Title: Re: How position ID is assigned to a photo?
Post by: Abbas Ali on January 16, 2007, 12:01:14 pm
pos=-xxx actually is the picture id stored in database and not position. so pos=-xxx is actually pid=xxx.
Title: Re: How position ID is assigned to a photo?
Post by: ^SuPeR^ on January 16, 2007, 12:23:04 pm
Thanks!
And is the a rule for pid assigned in database...like first photo pid=001, 2nd pid=002 etc. or it's random?
Title: Re: How position ID is assigned to a photo?
Post by: Abbas Ali on January 16, 2007, 12:52:32 pm
Yes, first added photo is 1 second is 2....