Php if statement with and

this IF statement doesn't work, can you explain me why ? I tired many combinations and any helped me. Thanks!

if($uptime > 99.98 and $uptime < 99.00)

Answers


There is no number less than 99 that is also greater than 99.98.

You probably want this:

if($uptime < 99.98 and $uptime > 99.00)

You are searching a old man having age less than that of his own child.

The number in between doesn't exists.

Make sure what is your logic. It looks like you want $uptime in between 99 and 99.8

Try:

if($uptime > 99.00 && $uptime < 99.98)

And yeah, try debugging your code. See what value you are getting on $uptime by:

echo $uptime;

Need Your Help

load a DLL reference from a different folder?

.net dll reference

I have a .NET console app that references a DLL. It runs fine if the DLL is in the same folder as the EXE but I would like to put the DLL in a different folder. How can I do that?

Open FB group page in browser using facebook-unity sdk

unity3d facebook-unity-sdk facebook-group

I am using facebook unity sdk in my ios game made using unity. I have a code in my game,