Skip to content
Advertisement

PHP Guessing Number

This is a random number guessing game between 1 and 100.

I am stuck on the guessing number part. The code doesn’t work, whatever number I put it just show me the message “Your number is lower!”.I need help.

This is what I have so far.

JavaScript

Advertisement

Answer

You will always get lower because There isn’t any value inside you $num.So, You need to assigning $num

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement