I have a MySQL statement that inserts some variables into the database. I recently added 2 fields which are optional ($intLat, $intLng). Right now, if these values are not
All you have to do is: $variable =NULL; // and pass it in the insert query. This will store the value as NULL in mysql db
$variable =NULL;