When you do a query, you fetch the results in your server side script. Each row is going to have an id column, correct?
Your script returns output in the form of html.
It is up to you to determine what the form of that output would be. For something like this, a typical response would be in the form of a table with different columns. Often people will include a column with one or more buttons like "ban", "edit", "password". The buttons can be simple url's of the type Cronix just described.
You simply need to write the scripts for each of the functions, or perhaps a master script that took multiple parameters like: