losse
06-29-06, 11:25 AM
Hi there
Right now I have page where I list all the users on my site... They are just ranked according to the order they entered the DB...
I would like to allow a ranking feature where you click on the column (say, "name", or "last name") and it automatically ranks the results...
Is that possible with PHP?
This is the script I have right now that spits out the users in my DB
while ($client = mysql_fetch_array($clients)) {
$id = $client['id'];
$name = htmlspecialchars($client['name']);
$last = htmlspecialchars($client['last']);
echo "<li>$name ". "$last ".
"<a href='cms_editclient.php?id=$id'>Edit</a> ".
"<a href='deleteclient.php?id=$id'>Delete</a></li>";
Your help is greatly appreciated.
Right now I have page where I list all the users on my site... They are just ranked according to the order they entered the DB...
I would like to allow a ranking feature where you click on the column (say, "name", or "last name") and it automatically ranks the results...
Is that possible with PHP?
This is the script I have right now that spits out the users in my DB
while ($client = mysql_fetch_array($clients)) {
$id = $client['id'];
$name = htmlspecialchars($client['name']);
$last = htmlspecialchars($client['last']);
echo "<li>$name ". "$last ".
"<a href='cms_editclient.php?id=$id'>Edit</a> ".
"<a href='deleteclient.php?id=$id'>Delete</a></li>";
Your help is greatly appreciated.