I am trying to bind params to a INSERT INTO MySQLi prepared statement if that variable exists, otherwise insert null.
This is what I have, but it is not working:
Keep in mind that you can't use bind_param twice, because the last statement will replace the first. Try to find a way to use bind_param just once.