[quote=“nayen, post:3, topic:223417, full:true”]Perhaps I need to find a way to assign the NULL value with an IF (?) check inside the query itself, not before the query like I did in the first post.
[/quote]
no, not with sql, with php – php has a perfectly adequate IF capability
just do the test in php, and send the right sql statement to the database