[EMAIL PROTECTED] wrote:
>errors, but it doesnt do what i want it to do - instead of returning any
>three digit combo that doesnt return 222, it just prints EVERY combo whice
>passes my conditional statement to weed out numbers that have digits where 2
>or more are the same.
>
I can't write bug-free code first time either. I have had to learn to
debug. In this case I would start just before your line...
>if ($answer != 222) {
>
...and put in "echo $answer" to see what number it actually has.
HTH
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php