Hi, can anyone tell me if I can use some sort conditional statement in this query.
"content.fk_pictures = pictures.pid"
That's the part I would like to make Conditional, something like, if false (or null maybe) then ignore, else show result.
The problem is that if no pictures are present then there's no result.
SELECT
content.cheader as ch,
content.ctekst as ct,
pictures.ppath as pp
FROM
content, section, pictures
WHERE
content.fk_section = section.sid
AND
section.sid = 1
AND
content.fk_menu = 1
AND
content.fk_pictures = pictures.pid
I would really appreciate it, if you need more info just tell me what to post.