emadson Posted September 27, 2011 Report Share Posted September 27, 2011 Amigos, o que quer dizer este erro? aparentemente tá tudo ok.CODIGO:<?phpinclude("conecta.php");$query = "SELECT * FROM noticias ORDER BY id_noticia DESC ";$resultado = mysql_query($query) or die(mysql_error());while ($row = mysql_fetch_array($resultado)) {$titulo_noticia = $row['titulo_noticia']; $texto_noticia = $row['texto_noticia'];?><TABLE class=texto cellSpacing=4 cellPadding=0 width="90%" align=center border=0> <TR> <TD vAlign=top align=left colSpan=2> <? echo $titulo_noticia; ?> - <? echo $texto_noticia; ?> </TD> </TR></TABLE><? }?>ERRO: ( ! ) Parse error: syntax error, unexpected $end in C:\wamp\www\teste\noticias.php on line 25 Call Stack # Time Memory Function Location 1 0.0010 367528 {main}( ) ..\index.php:0 Quote Link to comment Share on other sites More sharing options...
0 ESerra Posted September 27, 2011 Report Share Posted September 27, 2011 Tá dizendo que você abriu um { e não fechou. Quote Link to comment Share on other sites More sharing options...
Question
emadson
Amigos, o que quer dizer este erro? aparentemente tá tudo ok.
CODIGO:
<?php
include("conecta.php");
$query = "SELECT * FROM noticias ORDER BY id_noticia DESC ";
$resultado = mysql_query($query) or die(mysql_error());
while ($row = mysql_fetch_array($resultado)) {
$titulo_noticia = $row['titulo_noticia'];
$texto_noticia = $row['texto_noticia'];?>
<TABLE class=texto cellSpacing=4 cellPadding=0 width="90%" align=center border=0>
<TR>
<TD vAlign=top align=left colSpan=2>
<? echo $titulo_noticia; ?> - <? echo $texto_noticia; ?>
</TD>
</TR>
</TABLE>
<? }?>
ERRO:
( ! ) Parse error: syntax error, unexpected $end in C:\wamp\www\teste\noticias.php on line 25
Call Stack
# Time Memory Function Location
1 0.0010 367528 {main}( ) ..\index.php:0
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.