Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 02-21-2005, 03:49 PM
yungyaw Offline
forum loafer
 
Join Date: Jan 2005
Posts: 8
Image id numbers

I noticed that the image id for the permalink is runing on sequential numbers.

I've once had an error and I have skip a number in the sequence. I would like to reset the image id back so that it follows the sequential number.

I tried to edit the image id manually in the MySQL database. I managed to change the image id for that particular picture, but when I add a new image, the image id will continue from where it left off and not from the number I've changed.

Example:
Entry #1, image id = 36
Entry #2, image id = 38

I changed image id for Entry #2 back to 37, but when I add new image again (Entry #3), the image id will be 39 instead of 38.

Does anyone know how pixelpost keep track of the image id number. Is the any way to reset the image id?

Thanks!
Reply With Quote
  #2  
Old 02-21-2005, 07:25 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
nope!
not a rational way!
Why you do want such a thing?! this id is a 'key' in the table and increments automatically.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #3  
Old 02-22-2005, 03:26 AM
blinking8s's Avatar
blinking8s+ Offline
über loafer
 
Join Date: Oct 2004
Location: Bowling Green, Ky
Posts: 3,428
Send a message via ICQ to blinking8s Send a message via AIM to blinking8s Send a message via MSN to blinking8s Send a message via Skype™ to blinking8s
Quote:
Originally Posted by raminia
nope!
not a rational way!
Why you do want such a thing?! this id is a 'key' in the table and increments automatically.
haha...he is too picky and wants his ID's in sequence...

lol...dont mess up when you post or you'll spend some time in MySQL to fix it...when you cahnge the ID you have to alter the comments and such too.

Its seriously no big deal...just, becareful when you post..and try not to delete stuff. its the way this stuff works.
__________________
i should say more clever stuff
Reply With Quote
  #4  
Old 02-22-2005, 10:51 AM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
what good image id could do for you anyway?
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #5  
Old 02-22-2005, 12:30 PM
yungyaw Offline
forum loafer
 
Join Date: Jan 2005
Posts: 8
Sequential id number can represent how many photos I've posted and easier to keep track.

Yeah. I should just stick with whatever id the script assigned for me. I should concentrate on my photos instead of the id. :wink:

Maybe I'm just curious to know where pixelpost keep the running number?
Reply With Quote
  #6  
Old 02-22-2005, 12:54 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
<SITE_PHOTONUMBER> tag gives you the number of photos you have posted.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #7  
Old 02-23-2005, 11:37 AM
blinking8s's Avatar
blinking8s+ Offline
über loafer
 
Join Date: Oct 2004
Location: Bowling Green, Ky
Posts: 3,428
Send a message via ICQ to blinking8s Send a message via AIM to blinking8s Send a message via MSN to blinking8s Send a message via Skype™ to blinking8s
the id number isnt the number of the photo, its a reference for the database and php to pull up the image, a tag, or bookmark if you will

raminia is right, that tag inserted into the sites template will display how many total photos have been posted.
__________________
i should say more clever stuff
Reply With Quote
  #8  
Old 02-23-2005, 11:55 AM
Connie
Guest
 
Posts: n/a
I remember for more than 15 years in my job now that people want to "re-order" the ids because they have some "missing numbers" in there...

that's a very common misunderstanding of database-needs, I remember how often I tried to teach:

[b]don't mind the id, the id is for identification but not for counting!!!!
there are other means to get the number of the items in the table... [/]

let's add this point to our "virtual faq", I am sure we will get this question more often
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 03:48 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs