Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Drop down - sort by

  1. #11
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    So your looking how to display one thing and not the other?
    Jeremy | jfein.net

  2. #12
    Join Date
    Apr 2008
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    to be able to sort them. So if I have products listed across say 2 pages each with different pricing I want a way to be able to sort them ascending or descending based on price. I guess I could set them up ascending to begin with. I don't have to have that capability but I think it would certainly help my site.

  3. #13
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    What are you going to be listing?

    It all depends on how the data is brought in. If you'll be hard coding in the values, than you'll have to use javascript. There are tools out there to help. Granted, they're a bit advanced for an outright beginner, but you seem bright enough to pick it up.

    If you're bringing things in dynamically -- from a database, for example -- than you should use a server side language. For example, if you're storing products, prices, brands etc... in a MySQL database, it's easy to tell PHP to sort the results accordingly.

    With hardcoded values (or to sort things on the client side .. i.e. without having to reload the entire page), I would use something like this.

    Hope that helps.

  4. #14
    Join Date
    Apr 2008
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks I'll take a look through that. Thanks to both of you for the help. I'm trying to write a website from scratch and am teaching myself how as I go along. I don't have much time with a full time job and trying to get licensing in order to start a few businesses on top of this so I don't want anything to advanced, i.e. database linking or programming. thanks again, Steve

  5. #15
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by youngsc View Post
    Thanks I'll take a look through that. Thanks to both of you for the help. I'm trying to write a website from scratch and am teaching myself how as I go along. I don't have much time with a full time job and trying to get licensing in order to start a few businesses on top of this so I don't want anything to advanced, i.e. database linking or programming. thanks again, Steve
    Completely understandable.

    Though, as a general rule...setting up a database for this kind of application ends up being a time saver in the end.

    It does require some technical knowledge to set up though, so obviously not for a beginner.

    Just my $0.02

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •