This line
>
while(!adminok && ($i>=0))
was missing a $-sign, should be while(!$adminok && ($i>=0))
Though, it did not give an error, and I do not have any adminok
elsewhere... so how come, that it accepted this, and the programme
failed instead...?
Probably because error display was off and you did not provide any error
handling. Mind you, not displaying errors is good on a production
machine, as it won't help any hackers by showing internals of your code.
Furthermore, any word that is not defined as a constant and used as a
value is taken as an unquoted string. So your code actually was treated as:
while(!'adminok' && ($i>=0))
Regards,
--
Willem Bogaerts
Application smith
Kratz B.V.
http://www.kratz.nl/