|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (10 bit)
|
php question
OK so i finally got some free time to start learning php, and i get to this example(see code), but it wont work properly. The guess number counter should increment each time a incorrect guess is entered, but it doesnt. Any idea why?
TIA ^dan |
|
|
|
|
|
#2 |
|
Member (5 bit)
Join Date: Nov 2001
Location: The Crimson Permanent Assurance
Posts: 23
|
Instead of:
PHP Code:
PHP Code:
PHP Code:
Domhal |
|
|
|
|
|
#3 |
|
Member (10 bit)
|
I would do this because I don't think what he said gives a 0 before any guesses.
Have a look see what you think but this definitely works.
|
|
|
|
|
|
#4 |
|
Member (10 bit)
|
Thanks guys. MSIuser i used your approach and that worked great!
|
|
|
|
|
|
#5 |
|
Member (10 bit)
|
Glad to be of help. I'm making a website you may be interested in if you looking to learn php. check out http://forums.phpchallenge.com
If this is against forum rules delete link, just thought it would help him out.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|