Not Displaying Results from database
Status: Beta
Brought to you by:
gregheim
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?
View and moderate all "support-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Support Requests"
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")
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";