[jQuery] Re: sorting columns using jquery. noob with html and java. built custom php using snmp

2009-12-29 Thread Alex Mcauley
You have alot of unclosed tags in there ...

Let me help you out a bit and pastebin how it should look!...


This should help

http://pastie.org/759936


On Dec 28, 6:44 pm, ace123  wrote:
> I'm not sure if this is possible...but I love the jquery tablesorter-
> but I can't figure out how to get it working. My page displays as if
> it's not even there. I used php to snmpget some data from my network
> switches and routers. It saves it to my DB...then I have this page to
> display the information from the database. This is where I want to be
> able to sort, by switch type, software version, etc. I'm not a code
> guy, just a network engineer trying to make my job easier. Your help
> please is MUCH appreciated. I've been trying to get this to
> work off and on for 6 months.
>
> This is what I've got so far
>
> The page looks something like this when I load it.
>
> Host Name       Device Type     Firmware Version        Software Version
>
> edge-109c-gs.gov.ntwk   470-24T         "3.6.0.7"     "v3.7.3.13"
> edge-241c-gs.anx.ntwk   470-24T         "3.6.0.7"     "v3.7.3.13"
> edge-399c-gs.anx.ntwk   470-24T         "3.6.0.7"     "v3.7.3.13"
>
> 
> 
>
>  $username="root";
> $password="";
> $database="switchesdb";
> mysql_connect(localhost,$username,$password);
> mysql_select_db($database) or die( "Unable to select database");
> $query="SELECT * FROM switchcode";
> $result=mysql_query($query);
> $num=mysql_numrows($result);
> ?>
>
> 
>  script>
>