Not a Number is a number
I was having some trouble in PHP with a variable getting sent as NaN.
Try this out:
-
<?
-
?>
This is what I was doing in my PHP code:
-
<?
-
$homePhotoID=‘NULL’;
-
}
-
?>
I was using this variable to insert into a MySQL query. Debugging I figured out it was sending through: NaN
This is how my code ended up:
-
<?
-
$homePhotoID=‘NULL’;
-
}
-
?>
2 comments February 8th, 2007