phpbar.de logo

Mailinglisten-Archive

[php] How to sort data records in a table by their fields?

[php] How to sort data records in a table by their fields?

Nico Schefer php_(at)_phpcenter.de
Mon, 25 Jun 2001 11:20:08 +0200


> > I have a table in html with the following
> fields: ‚name' ‚price' ‚first
> > contact'. This table is a result of a mysql
> database query (over a
> > php-script). This table in html has a lot of
> data records. Now I want to
> > sort/ classify this data records by their name
> or price or first contact. I
> > know that there exist a solution with the
> javascript language, there is a
> > sort-button where you can choose between the
> different classification
> > possibilities, ‚name', price or first contact.
> Anybody knows a solution?

Hi

If ist not possible to sort the list as you request it, you
should have a look at this:
http://202.167.121.158/ebooks/dhtml/ch12.htm

Nico

--
www.webdessert.ch
New Media Design

Nico Schefer
schefer_(at)_webdessert.ch






php::bar PHP Wiki   -   Listenarchive