I want to set null in a table column if the input submitted by a user is an empty string.
More specifically the user may enter or not the wwwaddress of his site-if he has one.
Here is the code that checks if the user submitted an empty string or not and setting NULL to the
db table if indeed he has done so.
$result = $conn->query('update busines_users
echo 'problem dude.';
Unfortunately it does not work,in the db table in the wwwaddress column I still get an empty string.
This conditional you see fails to do what it supposes to do.: