Re: How is NULL stored?

From: Date: Mon, 11 Feb 2002 12:09:20 +0000
Subject: Re: How is NULL stored?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-16788@lists.php.net to get a copy of this message
> When I use phpMyAdmin to view data, where values are NULL it displays the > word 'NULL'. Does this mean that the word 'NULL' is actually stored in the > table, or is it defined by some other character? Is this any different from > an empty value? > > I am using it to check to see whether a value has been entered into a field, > and if so what is the value. Will MySql return an empty string or do I need > to trap for 'NULL' as well? > NULL is empty if you make this statement with php you can test it if (empty($var)) echo "NULL"; else echo $var; Jeroen

« previous php.db (#16788) next »