PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
The first echo $targeting returns the correct value. But when it gets toe end the echo $targeting always returns 1.5.
Forgive my stupidity here, I'm a windows programmer, not a php programmer (yet). Why is the if statement changing the value of my $targeting variable??
if you usethe assignment operator (0), it returns true if its set, otherwise false. Change all the if ($var = $othervar) to if ($var == $othervar) to make it work