dimanche 13 décembre 2015

Calculations in php with if()

I'm trying to do some calculations from some data I've received from my database. I don't think I'm doing it right. Example:

if ($progressing > $constant && $regressing) {
    //Do something if $progressing is more than BOTH $constant and $regressing
}

Is this correct? I can't seem to get the correct result., so I assume I'm doing something wrong here? But I'm unable to find out what.

Aucun commentaire:

Enregistrer un commentaire