PHP MasterMind

Warning: mysql_connect() [function.mysql-connect]: Access denied for user: 'navy2x@localhost' (Using password: YES) in /home/navy2x/www/www/games/mastermind.php on line 18

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/navy2x/www/www/games/mastermind.php on line 19

Guess

Hint

1:
Secret number:

Instructions:

    The goal of this game is to deduce the 4-digit "secret number." In order to accomplish this, you are given a total of 10 guesses. After each guess, a hint is provided that gives you clues relating your guess and the secret number.
    In the hint provided after each guess, there will either be a plus sign (+), a circle (o) or any combination of those two caracters. If there is a plus, that means that in your guess you have a correct number in a correct position. A circle means you have a correct number but in a wrong position. If none of the numbers that you guessed are in the secret number, then "None" will appear.
    Take a look at the examples to figure out how it works, or you can just start playing by entering in your first guess and hitting [Guess].

Important!!

    Notice that if there are any pluses, they will be first, followed by any circles. Also, a plus in the first position does not necessarily mean that the number in the first position in correctly placed, it means that there is one number somewhere that is correctly placed.

Examples:

Secret number: 1641
GUESS HINT
7890 None
1111 + +
4411 + o o
1144 + + o
1164 + o o o
1641 + + + +