Asc and desc of table
Posted: Tue Jul 31, 2007 10:24 pm
feyd | Please use
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
How to sort in ascending and descending order for the particular column when clicked on header......
The data is fetched from filesCode: Select all
$id = $_GET['id'];
$lines = file('phonedb.txt');
echo "<ul id=\"containerul\"><li class=\"connection\">View Tree";
echo "<ul><li class=\"connection\"><a href=\"tree.php?id=name\">Name</a>";
echo "<ul>";
for($i=0;$i<sizeof($text_array); $i++) {
echo "<li>--".$text_array[$i]['name']."</li>";
}
echo "</ul></li>";
echo "<li class=\"connection\"><a href=\"tree.php?id=address\">Address</a>";
echo "<ul>";
for($i=0;$i<sizeof($text_array); $i++) {
echo "<li>--".$text_array[$i]['address']."</li>";
}
echo "</ul></li>";feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]