Mam problem z napisaniem skryptu, ktory umozliwialby dodawanie, usuwanie i wyszukiwanie rekordow w bazie PostgreSQL. Skrypty wrzucone na serwer nie pokazuja ze gdzies wystapil blad ale nie dzialaja :/ Czy moze byc to spowodowane brakiem uprawnien? Podobne skrypty na MySQL dzialaly bez zarzutu. Jestem 'swiezakiem' wiec nie pojedzcie mnie za bardzo

Dodawanie:
Usuwanie:
<?php echo"<td height=21 width=270 align=center bordercolor=#C0C0C0><font face=Verdana size=1>{$wiersz['tytul']}</td>"; echo"<td height=21 width=109 align=center bordercolor=#C0C0C0><font face=Verdana size=1>{$wiersz['gatunek']}</td>"; echo"<td height=21 width=92 align=center bordercolor=#C0C0C0><font face=Verdana size=1>{$wiersz['rok']}</td>"; echo"<td height=21 width=86 align=center bordercolor=#C0C0C0><font face=Verdana size=1>{$wiersz['dlugosc']}</td>"; echo"<td height=21 width=49 align=center bordercolor=#C0C0C0><font face=Verdana size=1>{$wiersz['format']}</td>"; echo"<td height=21 width=84 align=center bordercolor=#C0C0C0><font face=Verdana size=1>{$wiersz['rozmiar']}</td>"; echo"<td height=21 width=8 align=center bordercolor=#C0C0C0><font face=Verdana size=1><a href="usun_film.php?stan=del&iddel=".$wiersz['id'].""><img border=0 align=center src=del.jpg></a></td>"; if($stan=='del') { echo "<center><font face=Verdana size=1><br>Rekord został skasowany!<br><a href=usun_film.php>Odswiez</a></font>"; } else { } ?>
Wyszukiwanie:
<?php if($stan=='szukaj') { $zapytanie = pg_query($link,"SELECT * FROM filmy where tytul like "%$znajdz%" or gatunek like "%$znajdz%" or rok like "%$znajdz%""); { echo"<td height=21 width=301 align=center bordercolor=#C0C0C0><font face=Verdana size=1>{$wiersz['tytul']}</td>"; echo"<td height=21 width=113 align=center bordercolor=#C0C0C0><font face=Verdana size=1>{$wiersz['gatunek']}</td>"; echo"<td height=21 width=81 align=center bordercolor=#C0C0C0><font face=Verdana size=1>{$wiersz['rok']}</td>"; echo"<td height=21 width=86 align=center bordercolor=#C0C0C0><font face=Verdana size=1>{$wiersz['dlugosc']}</td>"; echo"<td height=21 width=57 align=center bordercolor=#C0C0C0><font face=Verdana size=1>{$wiersz['format']}</td>"; echo"<td height=21 width=81 align=center bordercolor=#C0C0C0><font face=Verdana size=1>{$wiersz['rozmiar']}</td>"; } } else { echo "</table><center><br><form method=get action=szukaj.php><input type=text name=znajdz size=20><input type=submit value=szukaj name=stan></form></center>"; } ?>