PDA

View Full Version : PHP, MySQL SELECT FROM WHERE Clause



ianhull
05-15-2006, 12:54 PM
Hi guys,

I need to select all the records in a table using the WHERE clause
but my problem is I need to select everything WHERE courseowner is not null or empty

Please help.

Thanks

ianhull
05-15-2006, 12:57 PM
Any ever used a dummy $var to do this?

Thanks

azmanar
05-18-2006, 11:27 PM
Any ever used a dummy $var to do this?

Thanks

SELECT * FROM mytable WHERE courseowner!=""

or

SELECT * FROM mytable WHERE courseowner NOT NULL