02-24-2007, 05:43 PM
I am trying to detect an empty filed in mysql but seems that I am doint something wrong:
I tried both these codes:
php Code:
if ($myVariable != "")
and
php Code:
if (isset($myVariable))
But even when the field is empty they return true.
What am I doing wrong?
I tried both these codes:
php Code:
if ($myVariable != "")
and
php Code:
if (isset($myVariable))
But even when the field is empty they return true.
What am I doing wrong?