Ask a Question related to Dreamweaver AppDev, Design and Development.
-
TheRapidGroup #1
Simple Sorting Function for a Dynamic Table
Hello everyone, I was wondering if their was a way in dreamweaver to allow
your site users to sort the data displayed in a dynamic table on your site??
Preferably in a drop down menu but any help anyone may be able to give would be
most appreciated!
TheRapidGroup Guest
-
Sorting a recursive table by specified order
Hi all, I've got an table like this: TABLE: id int(8) PRIMARY AUTO_INCREMENT name varchar(80) parent int(8) INDEX order ... -
Sorting Dynamic Data
Hello, I am working through some tutorials, trying to make my self smarter in dynamic application building. The problem I am having (and I... -
Help with simple datagrid paging and sorting issue
Please help! I have a simple web app that displays some search fields, posts back to itself onclick of the search button, and shows the results... -
table sorting
Hi, Does anyone have any ideas on how to sort a table by clicking the column. i.e. a name column, and an age column - clicking the name will sort... -
dynamic sorting
ARAVIND wrote at Sat, 05 Jul 2003 04:11:57 -0700: I doubt it. I get $splitval eq "ARAVIND 2" and $splitval eq " BANGALORE" Well... -
stevenlmas #2
Re: Simple Sorting Function for a Dynamic Table
Create your SQL on the fly, say via a querystring so you have something like:
[url]www.site.com/mytablepage.asp?sort=lastname[/url] find where the SQL is generated on
your table page, Look for something like: ssql = 'SELECT * FROM customers'
after this line add something like: if request.querystring('sort') <> '' then
'there's something to sort by ssql =ssql & ' ORDER BY ' &
request.querystring('sort') then you can add links at the column heads or in a
drop down that look something like: <a
href='mytablepage.asp?sort=lastname'>Last Name</a> <a
href='mytablepage.asp?sort=address'>Address</a> <a
href='mytablepage.asp?sort=city'>City</a> the page links to itself, but each
link re-sorts the recordset. Check out [url]http://www.riverfrontmarine.com/[/url] and
look at the new and used boats. Look at the URL in the status bar when you
mouse over the column heads and you'll get an idea of what I did. This example
is ASP but you could do the same with PHP or JSP. Best of luck, Steve
Vaporloop: Technology Solutions for Small Businesses
stevenlmas Guest
-
stevenlmas #3
Re: Simple Sorting Function for a Dynamic Table
the code I wrote to show you how to make the sort links where converted to
actual links. here they are w/o the tags so they show up. a
href='mytablepage.asp?sort=lastname' LAST NAME /a a
href='mytablepage.asp?sort=city' CITY /a a href='mytaplepage.asp?sort=state
STATE /a
stevenlmas Guest
-
TheRapidGroup #4
Re: Simple Sorting Function for a Dynamic Table
Thanks for taking the time to help me out. I am going to try it out right now.
TheRapidGroup Guest



Reply With Quote

