Error syntax

  • Autor Autor alkidia
  • Fecha de inicio Fecha de inicio

alkidia

Beta
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
Buenas el blog me da el siguiente error:

Parse error: syntax error, unexpected '?' in /xxx/index.php on line 126

126
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?
127
128 ></a></h2> <?php else: ?>

Si alguien me puede ayudar se lo agradezco.

Saludos
 
falta un signo de mayor que > en la linea 126 despues del ultimo signo de interrogacion
 
te falto cerrar el parametro como mensiono Mr. Nitro,
tendria que verse esa linea asi:
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?>
 
Ya te lo solucionaron, recuerda todo lo que inicia tiene un fin.
 
No es que te falte el final, sino que hay una linea en blanco entre medio
126 <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?
127
128 ></a></h2> <?php else: ?>

Quedaria:

126 <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?>
127</a></h2> <?php else: ?>

Menos desprolijo seria:

PHP:
<?php 
echo '<h2><a href="'.the_permalink().'" title="'.the_title().'">'.the_title().'</a></h2>';
else{......
?>
 
Última edición:
Gracias era por la linea en blanco. Saludos


Sent from my iPhone using Tapatalk