Ask about general coding issues or problems here.
2 posts • Page 1 of 1
Code: Select all
while($data = fgetcsv ($fp, 1024, ","))
echo ($data == $country) ? $data. ' from ' .$data. '<br />' : '' ;
you were using an assignment = in your if clause ( if(a=b) should be if(a==b)) and muddling a few vars around.
try the above anyway.
subnote: be sure to set $country to some value somewhere
Who is online
Users browsing this forum: No registered users and 3 guests