there are some quotes of more the end of this line:
Echo "$Row[Pais]".""."$Row[Lugar]."."<BR>".";}
$NumElementos=Count($ciudad);
Which causes the string to close just after Echo
on this line:
Echo "<TR><TD><P>Ciudad</P></TD> <TD><P>Pais</P></TD></TR>";
the <
of <TR>
is interpreted as "less than" and the >
is the unexpected of the error.
note To avoid this type of errors, it is very useful to use an editor that colors the syntax of the language. Notice how the first Echo
looks light blue (indicates a keyword / function / instruction) and the second one looks brown / dark red (indicates string)
foreach($ciudad as $Key => $Row){
Echo "$Row[Pais]".""."$Row[Lugar]."."<BR>".";}
$NumElementos=Count($ciudad);
Echo "<TR><TD><P>Ciudad</P></TD> <TD><P>Pais</P></TD></TR>";
and corrected, notice how the colors change:
foreach($ciudad as $Key => $Row){
Echo "$Row[Pais]".""."$Row[Lugar]."."<BR>";}
$NumElementos=Count($ciudad);
Echo "<TR><TD><P>Ciudad</P></TD> <TD><P>Pais</P></TD></TR>";