Hi All. I'm trying to show all the records inside the array. But Doesn't shows me the first one, and show twice the last one. What could be the problem? Some wrong tag of HTML?
Would be great if someone could help me out..
Thanks a lot.
PHP Code:
$name="";
echo "\t</tr><tr>\n";
include_once("Puntos.php");
while ($line = mysql_fetch_assoc($result))
{
if($line['equipo']!=$name && $name != "")
{
echo "\t<td align=\"center\"><FONT SIZE=1 COLOR=BLACK>"; echo Punteo($line['equipo']); echo"</FONT> </td></tr><tr>\n";
}
if($line['equipo']!=$name)
{
echo "\t<td ><FONT SIZE=1 COLOR=BLACK>".$line['equipo']."</FONT></td>\n";
}
echo "\t\t<td align=\"center\"><FONT SIZE=1 COLOR=BLUE>".$line['homescore'].' - '.$line['awayscore']."</FONT></td>\n";
$name=$line['equipo'];
}
echo "\t<td align=\"center\"><FONT SIZE=1 COLOR=BLACK>"; echo Punteo($name); echo "</FONT></td>\n";