P2P | IT Discussions Forum

Full Version: empty field help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
Reference URL's