Server : Apache System : Linux profile 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64 User : apache ( 48) PHP Version : 8.0.28 Disable Function : NONE Directory : /var/www/html/mmishra/indem/ |
<span id='title'>Proxy Log</span><br>
<?php
$tbl = "proxylog";
$str = $_REQUEST["str"];
echo "$str<table width='100%'>";
if ($str) {
$rs = mysql_query("select * from $tbl where uid='$str' order by dated desc");
while($o = mysql_fetch_object($rs)) {
$i++;
echo "<tr><td>$i</td><td><b>$o->uid</b></td><td>$o->ipv4</td>
<td>$o->proxy</td><td>$o->url</td><td>$o->dated</td></tr>";
}
} else {
//$rs = mysql_query("select uid,proxy,count(id) no from $tbl group by uid,proxy");
$rs = mysql_query("select uid,count(id) no from $tbl group by uid order by no desc");
while($o = mysql_fetch_object($rs)) {
$i++;
echo "<tr><td>$i</td><td><b>$o->uid</b></td><td>$o->no</td></tr>";
}
}
echo "</table>";
?>