Jump to content


Photo

Erro...


  • Faça o login para participar
2 replies to this topic

#1 phew

phew

    Turista

  • Usuários
  • 59 posts
  • Sexo:Não informado

Posted 16/07/2006, 09:41

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style2 {
	color: #000000;
	font-size: 18px;
}
-->
</style>
</head>
<link rel="stylesheet" href="iCGstation.css" type="text/css" -="">

<body bgcolor="#CCCCCC">
<?
$sql = "select *,DATE_FORMAT(data, '%d/%m/%Y') as databr from noticias order by id DESC";

	$conexao = mysql_connect("$host","$user","$pass");
	mysql_select_db("$db");

	$query = mysql_query($sql);

	while($linha = mysql_fetch_array($query))
	{
	echo '
	<img src="admin_im/nova_no.gif" width="99" height="23">
	<table class="forumline" border="0" cellpadding="2" cellspacing="1" width="100%">
	  <tbody>
   	 <tr>
		  <td class="navpic" height="25"><span class="genmed">
			<center>
			  <b>Not&iacute;cia:'. $linha["titulo"] .' </b>
			</center>
	 	 </span></td>
		</tr>
		<tr>
		  <td class="row2" align="left" height="24"><span class="gensmall">' .	 $linha["databr"] .'-'. $linha["hora"].'  </span></td>
		</tr>
		<tr>
		  <td class="row1" align="left"><div align="center">
			<p><span class="gensmall" style="line-height: 150%;"><span class="style2">'. $linha["corpo"] .' </span></span></p>
			<p>&nbsp;</p>
			<p><span class="gensmall" style="line-height: 150%;"><br>
				<br>
				</span></p>
		  </div></td>
		</tr>
		<tr>
		  <td class="row3" align="left" height="24"><span class="gensmall"> (Escrito por: <a href="mailto:"' . $linha["email"] . '">' . $linha["nick"] . '</a>) </span></td>
		</tr>
	  </tbody>
	</table>
	<img src="admin_im/edit_no.gif" width="99" height="23">
	<img src="admin_im/delet_no.gif" width="99" height="23">'; ?>

</body>
</html>


Parse error: parse error in c:\bin\easyphp1-8\www\admin\home_not.php on line 59
Seria a ultima linha, após o </html>, não seio q pode ser...

#2 Felipe Pena

Felipe Pena

    O temor do Senhor é o princípio da sabedoria

  • Ex-Admins
  • 6441 posts
  • Sexo:Masculino

Posted 16/07/2006, 10:24

Pelo visto você esqueceu de fechar o colchete que foi aberto no while. :)
Felipe Pena
[...] ó terra, terra, terra; ouve a palavra do Senhor. — Jeremias 22:29

#3 phew

phew

    Turista

  • Usuários
  • 59 posts
  • Sexo:Não informado

Posted 16/07/2006, 10:56

ixi, eh mesmo vlw ae...




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq