The correct answer has already been posted:
$al3 = ( !empty($_POST['al3']) ) ? ($_POST['al3']): null;
Make sure that the relevant field excepts null values.
If you are not sure, use the "Explain table" syntax and post it here.
Also, never insert user data directly into a mysql query. Always properly sanitize the data first.
I think we would need to see all of the relevant code along with a clearer description of what exactly you are trying to do in order to adequately answer your question.
Hello everyone,
I have been programming casually for a few years now in primarily PHP and Javascript. Recently took the next step and moved into part time freelancing. I am looking to both share my knowledge and expand it.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.