I have a link in a in a table that links to a little tooltip.
<th><a href="#" class="tooltip">Reg NSB$
This works fine, but I'd like the link to resort the table by that column when it's click (a common feature in web tables that I see...) My initial thought was to put an onclick event there, like so:
<th><a href="#" class="tooltip" onclick="<?php mysqli_query($con, "SELECT * FROM report WHERE PMName = '$PMSelection' AND REGNSB <> 0.000 ORDER BY RegNSB DESC Limit $LimitStart,$LimitItems"); ?>">Reg NSB$
I've looked around but I can't figure out a way to accomplish the running of a mysqli query when I click on a "link".
Thanks!