Need help with PHP problem
By
CripDawg
in Programming
in Programming
Go to solution
Solved by fizzlesticks,
thanks at least it works now but it just prints "numbers are equal" because they are both the same value
That's why it needs to be the first check done.
if(strlen($num1) == 0 && strlen($num2) == 0) {}else if(num1 == num2){}else if(num1 > num2){}else //num1 < num2{}
-
Topics
-
Krewtoxin ·
Posted in Laptops and Pre-Built Systems0 -
0
-
Nexti88 ·
Posted in CPUs, Motherboards, and Memory3 -
HyperPro_Andrew118 ·
Posted in Graphics Cards1 -
tanjackson ·
Posted in New Builds and Planning3 -
7
-
rich_az ·
Posted in New Builds and Planning3 -
0
-
proxyyfps ·
Posted in Troubleshooting2 -
Krisp-kiwi ·
Posted in New Builds and Planning14
-
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now