php - Filter MySQL result w/ empty row -


i have searched high , low filter mysql query not null not work. hope me. have columns empty named 'path'. , want filter these out.

my query:

select  p.path, p.title, p.body, p.post_date, u.username pages p  left join users u on p.post_author = u.id  order p.id asc 

how can done? thanks.

select      p.path, p.title, p.body, p.post_date, u.username  pages p  left join users u on p.post_author = u.id      p.path not null ,      p.path <> '' order p.id asc 

so or asking different?


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -