Hello Kostas,

Friday, June 28, 2002, 6:57:26 PM, you wrote:

Its my online.php
//---cut from here

<META HTTP-EQUIV="Refresh" CONTENT="60">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" content="no-cache">

<?php
$user="radius";
$host="localhost";
$password="your_rad_pass";
$database="radius";


$query="select UserName,AcctStartTime from radacct where AcctStopTime=0 order by 
UserName";
mysql_connect($host,$user,$password);
mysql_select_db($database);
$result=mysql_query($query);

echo('<html><body><br><a href="index.php">Main page</a><table border=1><TBODY>');

    for($i=0;$i<mysql_num_rows($result);$i++)
    {
        echo("<TR>");
        $row_array=mysql_fetch_row($result);
        for($j=0;$j<mysql_num_fields($result);$j++)
        {
            echo("<TD>".$row_array[$j]."</TD>");
        }
        echo("</TR>");
    }

?>

</TBODY>
</table>
</body>
</html>

//---cut to here


-- 
Best regards,
 rust                            mailto:[EMAIL PROTECTED]


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to