Mam problem z zapytaniem do bazy danych. Korzystałem z porad na tym forum i wyszedl mi taki kod
<? require "conf_con.php"; connection(); $wh[] = 'nazwa = '.$_GET["nazwa"]; $wh[] = 'miasto = '.$_GET["miasto"]; $wh[] = 'ulica = '.$_GET["ulica"]; $wh[] = 'nrb = '.$_GET["nrb"]; $wh[] = 'nrl = '.$_GET["nrl"]; $wh[] = 'woj = '.$_GET["woj"]; $wh[] = 'kat = '.$_GET["kat"]; else $where = ''; $sql = 'SELECT * FROM placowka '.$where; } } else { } ?>
i wyzuca mi taki bład
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''SELECT * FROM placowka where nazwa = jakas'' at line 1
Niewiem co to moze byc juz kombinowalem jak moglem ale nie daje sobie rady od dwoch dni

Pozdrawiam