jestem noobkiem

Nie działa mi wyszukiwarka. W czym tkwi problem ?
<?php { $tytul = $_POST['tytul']; { } } ?>
Ma wyszukiwać dane słowo po tytule i nazwie autora(albo wpisze tytuł albo autora) z tabeli publications..
Co jest źle?
Pozdrawiam
<?php { $tytul = $_POST['tytul']; { } } ?>
i będziesz wiedział, co jest źle.
$zapytanie = mysql_query("SELECT * FROM `publications` WHERE `tytul`.`TYTUL` LIKE '%$tytul%' ") or die(mysql_error());
$zapytanie = mysql_query($connection,"SELECT * FROM `publications` WHERE `tytul`.`TYTUL` LIKE '%$tytul%' ") or die(mysql_error());
<?php { $tytul = $_POST['tytul']; $zapytanie = mysql_query("SELECT * FROM `publications` WHERE `tytul` LIKE '%$tytul%' ") or die(mysql_error()); { } } ?>
}?>
{ }?>
}?>
}?>
{ }?>
<?php { $tytul = $_POST['tytul']; $autor = $_POST["autor"]; $zapytanie = mysql_query("SELECT `tytul`,`autor` FROM `publications` WHERE `tytul` LIKE '%$tytul%' AND autor LIKE '%$autor%' ") or die(mysql_error()); } { } } ?>
}
}
$zapytanie = mysql_query("SELECT `tytul`,`autor` FROM `publications` WHERE `tytul` LIKE '%$tytul%' AND autor LIKE '%$autor%' ") or die(mysql_error());
<?php { $tytul = $_POST['tytul']; $autor = $_POST["autor"]; } $zapytanie = mysql_query("SELECT `tytul`,`autor` FROM `publications` WHERE `tytul` LIKE '%$tytul%' AND `autor` LIKE '%$autor%' ") or die(mysql_error()); { } } ?>
if($tytul == "" && $autor == "") { }
}
$query = "SELECT "; } else { $query .= "autor FROM `publications` WHERE autor LIKE '%$autor%'"; } $query .= "tytul FROM `publications` WHERE tytul LIKE '%$tytul%'"; } else { $query .= "autor, tytul from publications WHERE autor LIKE '%$autor%' AND tytul LIKE '%$tytul%'"; } } // i dalej:
<? { } ?>
<?php $na_stronie = 5; //Ilość wpisów wyświetlanych na jedną stronę $s = (int)$_GET['s']; if ($_GET['id'] && $_GET['uri']){ } $db = new mysqli('localhost','xxxx','xxxxx','xxxx'); mysqli_query($db,'SET NAMES `latin2`'); $wykonaj=mysqli_query("SELECT * FROM publications"); $znaleziono=mysqli_num_rows($wykonaj); $sql = mysqli_query($db,'SELECT * FROM `publications` WHERE `CID`=2129 LIMIT '.($s).','.$na_stronie.''); while ($row = mysqli_fetch_array($sql)) { echo '<div class="l"> <a href='.$row['link'].' title='.$row['uri'].'><img src='.$row['img'].' alt="" /></a> </div>'; echo '<p class="details"><b>Autor: </b>'.$row['autor'].' | <b>ISBN: </b>'.$row['isbn'].' | <b>Cena: </b> '.$row['cena'].' zł</p>'; } if($znaleziono>$na_stronie) { for($i=0; $i<ceil($znaleziono/$na_stronie); $i++) } ?>