Hi
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($qu ery, $link_id);
$query_data = mysql_fetch_arr ay($result);
if (array_sum($que ry_data)==0)
{
echo "er nul";
}
Does "mysql_fetch_ar ray($result)" change the NULL values to zero
values? And is there a better way of doing it.
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($qu ery, $link_id);
$query_data = mysql_fetch_arr ay($result);
if (array_sum($que ry_data)==0)
{
echo "er nul";
}
Does "mysql_fetch_ar ray($result)" change the NULL values to zero
values? And is there a better way of doing it.
Comment