tenias problemas con las comillas ,
Código PHP:
Ver original<?php
include($_SERVER['DOCUMENT_ROOT'] . '/config.php');
$id = $_GET['id'];
if (isset($_SESSION['id'])) {
$sql = mysql_query("SELECT * FROM muros WHERE id='".$_GET['id']."'"); if ($yailol == 0){
header ("Location: ".$url."/home.php?noexiste"); }else{
$consultar = mysql_query("SELECT * FROM megusta WHERE idpub='".$_GET['id']."'"); if($ssas['username'] == $_SESSION['username']){
header ("Location: ".$url."/home.php?yanotegustaa"); }else{
$query = 'DELETE FROM megusta WHERE idpub="'.$_GET['id'].'" AND username="'.$_SESSION['username'].'"';
header ("Location: ".$url."/home.php?yanotegusta"); }}}else{
header ("Location: ".$url."/index.php");
}
?>
Saludos