Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/10/2013, 07:56
danibabasalom
 
Fecha de Ingreso: junio-2013
Ubicación: La Eliana
Mensajes: 38
Antigüedad: 10 años, 11 meses
Puntos: 0
Problema con " sin ninguna suelta

Vereis, en mi sistema de noticias al eliminar una noticia me da error en el php, este es mi codigo:
Código PHP:
<?php 
    
include("../db-cnx.php");
    
$SQL_pregunta_not mysql_query("SELECT * FROM Not_noticias ORDER BY Not_ID DESC"$db_link) or die(mysql_error()); // Ejecutamos la consulta  
    
while($Not_celda mysql_fetch_array($SQL_pregunta_not)){
    
    echo 
"<div class=''>";
        echo 
"<h3>{$Not_celda[Not_titulo]} - $Not_celda[Not_fecha]</h3>";
        
        echo 
"<p><a href=?eliminar=$Not_celda['id']>Eliminar</a></p>";
    echo 
"</div>";    
    } 
    if(isset(
$_GET['eliminar']))
    { 
        
$Del_Not_id = (int) mysql_real_escape_string($_GET['eliminar']);  
        
$SQL_eliminar_not mysql_query("DELETE FROM Not_noticias WHERE Not_id = '.$Del_Not_id.'"); // Ejecutamos la consulta para eliminar el registro de la base de datos 
    
if($SQL_eliminar_not
    { 
    echo 
'La noticia se eliminó correctamente';
    } 
    else 
    { 
    echo 
'La noticia no se eliminó correctamente';
    } 
    } 
?>
y meda el siguiente error
arse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\wamp\www\adminzone\eliminar_noticia.php on line 9
La linea 9 es:
Código PHP:
        echo "<p><a href='?eliminar=$Not_celda['id']>Eliminar</a></p>";
Ayuda porfavorno se donde esta el error