par
jeff » 01 févr. 2006, 15:36
salut
j'effectue cette requete
SELECT id_page_article,ARTICLE.contenu as contenu,ARTICLE.title as atitle,IMAGE.name as img,THEME.name as pathimg,XSLT.name as xslt FROM PAGE_ARTICLE,PAGE,ARTICLE,IMAGE,THEME,XSLT,USERS WHERE PAGE_ARTICLE.id_page=PAGE.id_page AND PAGE_ARTICLE.id_article=ARTICLE.id_article AND ARTICLE.id_image=IMAGE.id_image AND IMAGE.id_theme=THEME.id_theme AND ARTICLE.id_xslt=XSLT.id_xslt AND ARTICLE.id_users=USERS.id_users
on retrouve dans cette une table article avec un champs id_image
ce champs peut etre optionnel(null)
mon probleme si ce champs est null ma requete ne renvoi pas les lignes ou id_image est null
comment faire
merci?
salut
j'effectue cette requete
[php]SELECT id_page_article,ARTICLE.contenu as contenu,ARTICLE.title as atitle,IMAGE.name as img,THEME.name as pathimg,XSLT.name as xslt FROM PAGE_ARTICLE,PAGE,ARTICLE,IMAGE,THEME,XSLT,USERS WHERE PAGE_ARTICLE.id_page=PAGE.id_page AND PAGE_ARTICLE.id_article=ARTICLE.id_article AND ARTICLE.id_image=IMAGE.id_image AND IMAGE.id_theme=THEME.id_theme AND ARTICLE.id_xslt=XSLT.id_xslt AND ARTICLE.id_users=USERS.id_users[/php]
on retrouve dans cette une table article avec un champs id_image
ce champs peut etre optionnel(null)
mon probleme si ce champs est null ma requete ne renvoi pas les lignes ou id_image est null
comment faire
merci?