Witam mam taki fragment kodu, jednak nie wyświetla mi ofert z miasta Nowa Ruda tylko wszystkie które są w bazie. Gdzie jest zatem błąd?(IMG:
style_emoticons/default/questionmark.gif)
//wybranie ofert z konkretnego miasta
$miasteczko = 'Nowa Ruda';
$nazwa = $prefiks.'oferty';
$query = "SELECT * FROM $nazwa WHERE ('$miasto' = '$miasteczko' AND moderacja = '0') ORDER BY id DESC LIMIT $limit";
//jeli liczba ofert jest rowna 0 to wyswietl komunikat
{
echo('<p style="font-size: 20px; font-weight: bold; text-align: center; padding: 20px; color: #C0C0C0">Brak nowych ofert</p>'); }
else
{
<table width="100%">
<tr>
<td style="border: 1px dashed #E0E0E0; border-right: 0px; height: 25px;"></td>
<td style="border-top: 1px dashed #E0E0E0; border-bottom: 1px dashed #E0E0E0; font-size: 14px; color: #CC3300;" align="center" width="60%"><b>Tytuł</b></td>
<td style="border-top: 1px dashed #E0E0E0; border-bottom: 1px dashed #E0E0E0; font-size: 14px; color: #CC3300;" align="center"><b>Cena</b></td>
<td style="border: 1px dashed #E0E0E0; border-left: 0px; font-size: 14px; color: #CC3300;" align="center"><b>Koniec</b></td>
</tr>
');