Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: How position ID is assigned to a photo?  (Read 2232 times)

0 Members and 1 Guest are viewing this topic.

^SuPeR^

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
How position ID is assigned to a photo?
« 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
« Last Edit: January 16, 2007, 06:07:09 pm by GauGau »
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: How position ID is assigned to a photo?
« Reply #1 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.
Logged
Chief Geek at Ranium Systems

^SuPeR^

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: How position ID is assigned to a photo?
« Reply #2 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?
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: How position ID is assigned to a photo?
« Reply #3 on: January 16, 2007, 12:52:32 pm »

Yes, first added photo is 1 second is 2....
Logged
Chief Geek at Ranium Systems
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.