Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: How position ID is assigned to a photo?  (Read 2557 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.026 seconds with 20 queries.