Ver Mensaje Individual
  #6 (permalink)  
Antiguo 21/11/2007, 17:29
Avatar de alonsoandres
alonsoandres
 
Fecha de Ingreso: enero-2004
Ubicación: Matamoros, Tamaulipas
Mensajes: 305
Antigüedad: 20 años, 3 meses
Puntos: 3
Re: Codigo le falta algo pero no logro saber que.

Disculpa pero me salio otro problemita heheh pero ahora es kon este codigo:
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Editar Noticia '.$row[titulo].'</title>
</head>

<body>
<? 
//recibimos la variable id enviada en el enlace por GET 
$id=$_GET[id]; 
//Conexion a la base de datos.
session_start(); 
include(
'incluir/config.php');
//hacemos las consultas 
$result=mysql_query("select * from noticias where id_noticia='$id'");
//Una vez seleccionados los registros los mostramos para su edición 
while($row=mysql_fetch_array($result)) 

echo 
'<form action="edit.php" method="post">
<input type="hidden" name="id" value="'
.$row[id_noticia].'"/>
<br>Título noticia:<br> 
<input type="text" name="titulo" value="'
.$row[titulo].'"><br> 
Autor:<br> 
<input type="text" name="autor" value="'
.$row[autor].'"><br> 
Categoría:<br> 
<input type="text" name="categoria" value="'
.$row[categoria].'"><br> 
Escriba el articulo<br> 
<textarea name="articulo" cols="50" rows="10">'
.$row[articulo].'</textarea> 
<br> 
<input type="submit" value="Editar"><br> 
</form>'
;  

?>
</body>
</html>
el error es este: Parse error: syntax error, unexpected $end in /home/galvax/public_html/noticias/editar.php on line 37