HTML Sorting of a MySQL Table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • w33nie
    New Member
    • Jan 2007
    • 56

    HTML Sorting of a MySQL Table

    What I want is for my MySQL database to be printed on a mostly html based page, with links on the top of each column, saying what information is contained in the columns below.
    Then all I want is for these links to be a simple <a> link, but all they do is sort the mySQL table below when clicked.
    Is this possible?

    example..
    <a ????="<?php
    $query = mysql_query('SE LECT * FROM `stats` ORDER BY number DESC LIMIT 0, 64') ?>">Number</a>
    just something like that, simple.

    But if it isn't possible, how else could I do it?
  • mwasif
    Recognized Expert Contributor
    • Jul 2006
    • 802

    #2
    Moved from MySQL to PHP Forum.

    Comment

    • kovik
      Recognized Expert Top Contributor
      • Jun 2007
      • 1044

      #3
      Originally posted by w33nie
      What I want is for my MySQL database to be printed on a mostly html based page, with links on the top of each column, saying what information is contained in the columns below.
      Then all I want is for these links to be a simple <a> link, but all they do is sort the mySQL table below when clicked.
      Is this possible?

      example..
      <a ????="<?php
      $query = mysql_query('SE LECT * FROM `stats` ORDER BY number DESC LIMIT 0, 64') ?>">Number</a>
      just something like that, simple.

      But if it isn't possible, how else could I do it?
      I've had someone ask this question to me over at DevNetwork. You can see this simple example I gave here.

      Comment

      • w33nie
        New Member
        • Jan 2007
        • 56

        #4
        Thanks, I'll post anything further in there.

        Comment

        Working...