|
Posted by Ewoud Dronkert on 06/21/05 13:56
On 21 Jun 2005 00:03:26 -0700, madsgormlarsen@gmail.com wrote:
> I need to test a field(colum) in a SQL database for for NULL values,
> and have done so in this way.
>
> $query = "SELECT j FROM Andersen";
> $result = mysql_query($query, $link_id);
> $query_data = mysql_fetch_array($result);
> if (array_sum($query_data)==0)
> {
> echo "er nul";
> }
Do you expect or want them all to be null, or some, or none?
--
Firefox Web Browser - Rediscover the web - http://getffox.com/
Thunderbird E-mail and Newsgroups - http://gettbird.com/
Navigation:
[Reply to this message]
|