syntax error, unexpected 'something' (T_VARIABLE) [closed]

you have a syntax error here

if($name = $gms[$i]

change to

if($name == $gms[$i])

wich is causing T_VARIABLE error, just close bracket and add = and you are ready to go

Leave a Comment