Forum Moderators: open
$var_1='NA';$var_2='NA';$var_3='NA';$var_4='NA';$var_5='NA';
I would either leave it as NULL (a little more coding involved) or use JD_Toims' method with an empty string (i.e., '') instead of 'NA' in the field.
I'm very new at both php and mysql and don't understand the preg_match code.