Menu

#4 Not Displaying Results from database

open
nobody
5
2009-10-27
2009-10-27
Anonymous
No

I have installed all the correct applications. I do have data in the database. I can pull up the website and select the subnets. However I am not getting any of the results. Do you have any suggestions? Also for troubleshooting, how can I convert the date/time in the database to a readable format?

Discussion

  • Nobody/Anonymous

    I'm not a php expert but I made these changes for hawk to display correctly on a centos 5.4, PHP 5.1.6 system....

    # $sortby=$HTTP_POST_VARS["sortby"];
    # $network=$HTTP_POST_VARS["network"];
    # $showeverydamnthing=$HTTP_POST_VARS["showeverydamnthing"];
    $sortby=$_POST["sortby"];
    $network=$_POST["network"];
    $showeverydamnthing=$_POST["showeverydamnthing"];

    # if ($sortby == ip)
    if ($sortby == "ip")

     
  • Nobody/Anonymous

    I forgot one more line which needed a editing to allow sortby to work correctly. Additional line added below.

    ================

    I'm not a php expert but I made these changes for hawk to display correctly
    on a centos 5.4, PHP 5.1.6 system....

    # $sortby=$HTTP_POST_VARS["sortby"];
    # $network=$HTTP_POST_VARS["network"];
    # $showeverydamnthing=$HTTP_POST_VARS["showeverydamnthing"];
    $sortby=$_POST["sortby"];
    $network=$_POST["network"];
    $showeverydamnthing=$_POST["showeverydamnthing"];

    # if ($sortby == ip)
    if ($sortby == "ip")

    # $query = "select ip, hostname, lastping from hawk.ip order by '$sortby'";
    $query = "select ip, hostname, lastping from hawk.ip order by $sortby";

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.