RJ Posted December 19, 2009 Share Posted December 19, 2009 Good evening, I have a sortable table on my site (right now only a few, but will have 50 names when finished), What I am trying to figure out is I need to have a column (first, before team column not there yet) with numbers 1 to 50. I dont want this column to ever move so teams can see how they rank against everyone else. when I add the # column now it will sort also, the numbers seem to be matched to all other columns, giving me the column out of # order. I would have to add the column for the numbers, once I can find answer I have included the page http://www.fantasyracein.com/teamstats.php The team column I was able to keep from making it sortable, thanks RJ Quote Link to comment https://forums.phpfreaks.com/topic/185717-need-a-column-not-to-move-in-sortable-table/ Share on other sites More sharing options...
abazoskib Posted December 19, 2009 Share Posted December 19, 2009 You should read more about a script before you download and put it to use. http://www.kryogenix.org/code/browser/sorttable/#nosortcolumn Quote Link to comment https://forums.phpfreaks.com/topic/185717-need-a-column-not-to-move-in-sortable-table/#findComment-980644 Share on other sites More sharing options...
RJ Posted December 20, 2009 Author Share Posted December 20, 2009 I did read it when I dl'd, I think I might not have explained myself right. if I have a table with a total of 7 columns, having the first column order never move, it would start as #1 and then every row would increase by one, (2, 3, etc.) then the rest of the table would be sortable, thx for looking at this, RJ Quote Link to comment https://forums.phpfreaks.com/topic/185717-need-a-column-not-to-move-in-sortable-table/#findComment-980723 Share on other sites More sharing options...
abazoskib Posted December 20, 2009 Share Posted December 20, 2009 I did read it when I dl'd, I think I might not have explained myself right. if I have a table with a total of 7 columns, having the first column order never move, it would start as #1 and then every row would increase by one, (2, 3, etc.) then the rest of the table would be sortable, thanks for looking at this, RJ I see what you are saying. Make a second table to the left of your sortable table. You can use CSS to make it look as if it is part of the sortable table. Quote Link to comment https://forums.phpfreaks.com/topic/185717-need-a-column-not-to-move-in-sortable-table/#findComment-980725 Share on other sites More sharing options...
RJ Posted December 20, 2009 Author Share Posted December 20, 2009 Thx, I will give it a try, and report back when finished, have a Happy Holiday, thx RJ Quote Link to comment https://forums.phpfreaks.com/topic/185717-need-a-column-not-to-move-in-sortable-table/#findComment-980726 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.