Possible Duplicate:
Warning: mysql_fetch_* expects parameter 1 to be resource, boolean given error
I have a table with 6 columns.
The first three (id, channel, date) are set as its primary key.
I'd like get the MIN and MAX values of the id column for a given channel / date. Problem is, it seems I can't use WHERE while using MIN and MAX in my query.
Böyle bir işe bir şey almak için temiz bir yolu var mı:
SELECT MIN(id), MAX(id) FROM table WHERE channel = xxxx AND date = yyyy ?
UPDATE:
Üzgünüz, hatayı eklemeyi unuttum. İşte sonuçlar ayrıştırma zaman elde ne var: "Uyarı: mysql_fetch_row () parametre 1 kaynak olmasını beklediğini, boolean given"