Hi,
I have a <select> drop down in my php. I want to set the first item as NULL then determine in my PHP if it's null or not.
If NULL then pass a NULL through the PDO, otherwise save the integer alue.
something like this:
<option value="<?php echo null; ?>">[Select..]</option>
if ($member_title != NULL) { $mysql_query->bindParam(':param_member_title', $member_title, PDO::PARAM_INT);}
else {$mysql_query->bindParam(':param_member_title', NULL, PDO::PARAM_NULL);}
can anyone help please... Thanks...