Firstly: "=" is an assignment operator, while "==" is a comparison operator, and "===" is a type-sensitive comparison operator; so you'll want to use one of the latter two, depending on whether you only want to match if it is truly null, versus any value that is considered equivalent to null (empty string, 0, 0.0, or false, for instance).
PHP Code:
if($club_info["year_introduced"] == null) { // do stuff if it's null, false, "", 0, or 0.0 }
if($club_info["year_introduced"] === null) { // do stuff only if it is truly null }
For the latter case, you could also make use of the is_null() function.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks