I was wondering how can I stop an empty value from being entered into my MySQL database in the example below which will enter nothing in to the database, so that my MySQL Default NULL value is displayed in the database?
if(empty($_POST['username'])){
$u = NULL;
}