I have a page for a mysql database that just lists everything in the database in a table. I want to be able to click on the column name and sort the table by that attribute. I know how to sort the database using mysql commands through PHP.
The Problem is I don't know how to call the PHP inside the tag.
Do I need to call a new page and just put the column name in the query string? Then use that to sort the database.
Is there a way to do this without calling a new page?
The Problem is I don't know how to call the PHP inside the tag.
Code:
<a href="<? print 'something';?>"> Something</a> This doesn't work.
Do I need to call a new page and just put the column name in the query string? Then use that to sort the database.
Is there a way to do this without calling a new page?