Alright, i've tried everything. SO is my last resort!!
heres my code:
for($i = 0; $i < 15; $i++){
$coach = $trainergross[$i]['instr'];
$tclub = $trainergross[$i]['club'];
$rookcheck = "$coach $tclub";
if(in_array(trim(strtolower($rookcheck)), $rook)){
$pls = 'y no work';
}
echo "$rookcheck $pls <br>";
}
here is print_r($rook):
Array ( [0] => jess p )
and here is what echo "$rookcheck $pls <br>"; is creating
naps d
sarah c
richie e
lee b
kate e
jess p <---- WHY ISNT THIS ECHOING $PLS???
josh d
chris e
if i use in_array('jess p', $rook) it works. so is the loop breaking this? i dont know. i'm getting mad!
Thanks for your help!!