Session Management Menu Logout
'; exit; } if (strpos(strtolower($dbserv),"fail") !== false){ $results = strtolower($dbserv); return $results; exit; } if (strpos(strtolower($dbuser),"fail") !== false){ $results = strtolower($dbuser); return $results; exit; } if (strpos(strtolower($dbpass),"fail") !== false){ $results = strtolower($dbpass); return $results; exit; } if (strpos(strtolower($dbname),"fail") !== false){ $results = strtolower($dbname); return $results; exit; } if (strpos(strtolower($dbtable),"fail") !== false){ $results = strtolower($dbtable); return $results; exit; } if (strpos(strtolower($dbusertable),"fail") !== false){ $results = strtolower($dbusertable); return $results; exit; } $dbconnection = connect_to_database($dbserv,$dbuser,$dbpass,$dbname); if (strpos(strtolower($dbconnection),"fail") !== false){ $results = strtolower($dbconnection); return $results; exit; } $query = mysql_query("SELECT DISTINCT(ip_address) FROM " . $dbtable . " WHERE user_name='" . $usertofind . "'"); if (!query){ $results = "failed, " . mysql_error(); return $results; exit; } while ($row = mysql_fetch_array($query)){ echo ''; echo ''; echo ''; } echo ''; mysql_close($dbconnection); ?>
IP Address
Failed to determin user name to locate
' . $row['ip_address'] . '
(' . $usertofind . ') User IPs