Am switching a reliable php 4 & mysql script to php5 & mysqli (whether this is significant I don’t know). The script now throws what should be a trivial error to correct …
syntax error, unexpected ‘<’ on line 586. Here’s the script:
[php] foreach($a as $k=>$v) {
if ($v==$country)
L.586 echo selected $v;
else
echo $v;
}
[/php]
Where $a is a text file holding a llist of countries.
I simply can’t find the errant “<”
Any suggestions on finding cause are appreciated.
Thanks usit