Here is some partial code from a php page I have
$display_block .= "
<table cellpadding = 0 cellspacing = 0 border=1 width=125%>
<tr><th>Last</th><th>First</th>
$last=mysql_result($result,$i,"last");
$first=mysql_result($result,$i,"first");
$i++;
$display_block .= "<tr>
<td align=left>$last<br></td>
<td align=left>$first<br></td>
How can I configure this so the user can select say the column last and sort(right on the page) descending or ascending on the fly, same for first and a few other columns like date_of_birth
$display_block .= "
<table cellpadding = 0 cellspacing = 0 border=1 width=125%>
<tr><th>Last</th><th>First</th>
$last=mysql_result($result,$i,"last");
$first=mysql_result($result,$i,"first");
$i++;
$display_block .= "<tr>
<td align=left>$last<br></td>
<td align=left>$first<br></td>
How can I configure this so the user can select say the column last and sort(right on the page) descending or ascending on the fly, same for first and a few other columns like date_of_birth