wtf,.. līki uz visiem 360 grādiem...
$query="SELECT * FROM users";
$result=mysql_query($query) or die();
$num=mysql_numrows($result) or die();
mysql_close();
$i=0;
while ( $i < $num ) {
$ip_check=mysql_result($result,$i,"ip");
$username_check=mysql_result($result,$i,"username");
$userpassword_check=mysql_result($result,$i,"password");
$users["$username_check"] = "$userpassword_check";
$i++;
}
paņem gatavu kodu no kādas lapeles un nemocies...
vai ari cheko ...
select * from users where username = $_SERVER['PHP_AUTH_USER'] AND password = md5($_SERVER['PHP_AUTH_PW'])