Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Looking for advice on sortable list elements
Old 03-18-2011, 05:40 PM Looking for advice on sortable list elements
imported_Tanjiro's Avatar
Novice Talker

Posts: 6
Trades: 0
Hey all! Sorry if this is in the wrong forum. Due to the nature of the problem I have no idea what language it will involve.

I'm working on a website for a composer, and one of the pages has a list of works by this composer. I want the list to be able to be reordered by the user (ascending/descending).

I also want the items in the list to be able to be filtered. So for example, there might be a dozen items in the list that fit a certain description or fall into a category. I'd like to have these items able to be isolated by clicking a button, probably in some kind of dropdown menu.

Currently I have this list set up simply as an unordered list. I'm after some advice on the best way to achieve what I want, whether it be a script of some sort or using tables instead or something else that has yet to cross my mind.

Any help would be greatly appreciated!
imported_Tanjiro is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-18-2011, 05:49 PM Re: Looking for advice on sortable list elements
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Serverside code and database queries, the "sort" or "filter" simply requests the data with different criteria.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-18-2011, 06:04 PM Re: Looking for advice on sortable list elements
imported_Tanjiro's Avatar
Novice Talker

Posts: 6
Trades: 0
Thanks very much, can you point me towards some material or a tutorial on this?
imported_Tanjiro is offline
Reply With Quote
View Public Profile
 
Old 03-18-2011, 07:58 PM Re: Looking for advice on sortable list elements
Super Spam Talker

Posts: 880
Name: Paul W
Trades: 0
Simplest and usually available is MySQL for the database - check with your hosting company. If you've got access, either they or you, depending on their setup, need to create a database and then create the table or tables that will hold the information. You then write a script that accepts arguments to determine filters and then queries the database and outputs results.

MySQL primer: http://www.webdevelopersnotes.com/tu..._tutorial.php3

Easy programming language: php www.php.net
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


*** New:
Please login or register to view this content. Registration is FREE
PaulW is online now
Reply With Quote
View Public Profile
 
Reply     « Reply to Looking for advice on sortable list elements
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15648 seconds with 12 queries