Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 what's the best way to create IDs and sort?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 13 April 2002 :  15:14:52  Show Profile
I have a list of DVD's on my site and it sucks when I have to add a new title. There are 94 titles so far and I just had to add 3 of them. They're sorted by ID as sorting by title can't work because of this:
Alien
Alien 2
Aliens
Alien Legacy

It'll show as this:
Alien
Aliens
Alien 2
Alien Legacy

The problem is that I now had to change the IDs in about 80 fields or it wouldn't order correctly anymore.
What's the best way to order them without having to edit all the ID's every time?

Any help would be appreciated.



http://www.frutzle.com

Snitz Exchange | Do's and Dont's

@tomic
Senior Member

USA
1790 Posts

Posted - 13 April 2002 :  15:27:24  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
You could add an ordering field so that you could take care of situations like this when they arise.

@tomic

http://www.skepticfriends.org
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 13 April 2002 :  15:35:11  Show Profile
I tried changing the ID from "number" to "text" and changed the ID's so it'd be a01, a02, a03 etc. That's fine when I sort them on my DVD page, but I can't get the information displayed on the second page ... it gives me a problem in the SQL statement where it's executed.



http://www.frutzle.com

Snitz Exchange | Do's and Dont's
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 13 April 2002 :  15:58:44  Show Profile
Problem solved (thanks again Nathan!). Something was wrong with the SQL statement on the info page. It's working now: http://www.frutzle.com/dvds/



http://www.frutzle.com

Snitz Exchange | Do's and Dont's
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07