Hey guys, i got this piece of code and it wont work for some reason, Any advice? Its the first time i try using || lets say $cash3 = name and $momid = name if ($cash0==$momid || $cash1==$momid || $cash2==$momid || $cash3==$momid || $cash4==$momid){ // never evaluates as true PHP:
The thing is it is, if i just echo cash$3 and $ mom ill get the same answers... :/ -- nevermind i did some more testing, only $cash0 seems to be defined... sorry ill check that out then
Maybe there is a hidden character in them or something. Try doing this before the logic to see if the logic evaluates as true then: $cash3 = $momid; PHP:
Thanks for the help Shawn, I rewrote the MYSQL query that had the cash values, the problem was there. Its working now after i dumped every entry into an array