Hi,
I am writing something to print the results of a database....with this code :
while ($agenda=mysql_fetch_array($result))
{
$dat=("agenda[data]");
list($ano,$mes,$dia)=explode("-",$dat);
print "<td bgcolor="#CCCCCC">\n";
print "<div align="left">\n"; // problem starts here...!!!!
print "<b><font face="Arial, Helvetica, sans-serif" size="2" color="#FFFFFF"><strong><font color="#000000" face="Arial, Helvetica, sans-serif">» $dia-$mes-$ano</font></strong></font></b></div>\n";
print "</td>\n";
print "</tr>\n";
print "<tr>\n";
print "<td height="66" valign="top">\n";
print "<blockquote>\n";
print "<div align="left">\n";
print "<p><font size="2" face="Arial, Helvetica, sans-serif"><strong><font color="#FF0000">$agenda[nome]<br>\n"
print "<p><font size="2" face="Arial, Helvetica, sans-serif"><strong>Bandas:</strong> $agenda[bandas].<br>"\n;
print "<strong>Horário: </strong>$agenda[hora]<strong><br>\n";
print "Local:</strong> $agenda[local]<strong><br>\n";
print "Ingressos :</strong>: $agenda[ingressos]</font></p>\n";
print "<strong>Informações:</strong> $agenda[info]<br>\n";
print "$agenda[info2]<br>\n";
print "</div>\n";
print "</blockquote> </td>\n";}
mysql_close ($link) ;
However, i receive a parse error when i try to run this code, telling me that the print function used since the assigned line is unexpected. What's the problem with the code ? I think it's simple stuff, but i am just beggining to figure out all this...
🙁
Thanks,
Ivan