Jump to content

How to return not null fields


iceblox

Recommended Posts

Hi Guys,

 

I have a database of mobile phone deals and i want to be able to return deals that have a gift assigned to them. There are many that dont so i was thinking a query like this would work but it doesnt. Am I being Blonde?

 

$query = "SELECT * FROM deals WHERE FreeGift IS NOT NULL ";

Link to comment
https://forums.phpfreaks.com/topic/75131-how-to-return-not-null-fields/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.