I'm having a problem trapping a database result where the value is null. I've tried different angles from (this is all in the
while($row = mysql_fetch_array($results)){
loop):
if(is_null($thisdept) == true) {
if(!is_numeric($thisdept) {
if($thisdept == "" || $thisdept == NULL || $thisdept == "null" || $thisdept == "NULL") {
no luck. I can't even seem to log it:
$isNull = is_null($thisdept);
$firephp->fb($isNull . "::" . $thisid);
doesn't even write to the console (yes, firephp is included correctly and works).
Here's the entry in the db (mysql) - item 19, column 3

I'm sure there's operator error going on here but I just can't seem to figure out what I am doing wrong. Any help would be appreciated.
More code:
if ($itemcount > 0) {
while($row = mysql_fetch_array($results)){
//clean up data
$thisid = $row['id'];
$thisdate = $row['theDate'];
$thisdept = $row['department'];
$thisbucket = $row['bucket'];
$thispub = $row['publication'];
$thisarea = $row['area'];
$thishours = $row['hours'];
$thisdesc = $row['description'];
$thistimestamp = $row['theTimestamp'];
$thissortdate = $row['sortdate'];
$workDate = $row['workDate'];
$isNull = is_null($thisdept);
$firephp->fb($isNull . "::" . $thisid);
//if department == null then we should just select the user's department and they can fix it on an edit
//$thisdept == "" || $thisdept == "null" || $thisdept == "NULL" || $thisdept == null || $thisdept = "Null"
if (is_null($thisdept) == true) {
$udQuery = "SELECT department FROM users WHERE username = '" . $username . "'";
$udResults = $db->getResults($udQuery);
$udItemCount = count($udResults);
if ($udItemCount > 0) {
while ($udRow = mysql_fetch_array($udResults)) {
$thisdept = $udRow['department'];
}
}
}
if(is_null($thisdept) == true) { if(!is_numeric()...If it's NULL then it's obviously not numeric.if (!is_null($thisdept))?$thisdeptis set...