Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
03-24-2013, 05:30 PM #1
- Join Date
- Mar 2013
- Thanked 0 Times in 0 Posts
My php code doesnt work, can anbody solve or revise this code please?
the code is for a number guessing game
the user should be given 7 attempts then the game resets.
a running total of numbers should also be displayed
the error i get is
Parse error: syntax error, unexpected '=', expecting ',' or ')' in F:\EasyPHP-12.1\www\scripting\guessinggame.php on line 1
the code i used is
echo "Your Life end<br>Thanks for playing<br>";
$output .="<a href='guessinggame.php'>Play again</a>";
$output.="<h1>Your answer was too low. Please try again!";
$output.="<h2>Your answer was too high. Please try again!</h2>";
thanks so much
03-24-2013, 06:11 PM #2PHP Code:
There are 10 types of people on CodingForums,
Those who understand Binary and those who dont.
Get Cloud Hosting now from only£59 / month