stophon4
05-19-2004, 12:54 AM
I cant do this while loop in a array, it doesn't work, maybe it is the while loop, but I am pretty sure that it is the while loop not working how I am doing this, probably syntax error.
$authorize = '1';
$authorized = count(file("authorized.dat"));
$authorized_IP = file("authorized.dat");
while($authorize >= $authorized){
echo ("<OPTION value='$authorize'>");
echo $authorized_IP[$authorize];
$authorize++;
}
I think it is this line:
echo $authorized_IP[$authorize];
How can I fix this?
$authorize = '1';
$authorized = count(file("authorized.dat"));
$authorized_IP = file("authorized.dat");
while($authorize >= $authorized){
echo ("<OPTION value='$authorize'>");
echo $authorized_IP[$authorize];
$authorize++;
}
I think it is this line:
echo $authorized_IP[$authorize];
How can I fix this?