Passing NULL values into mysql Stored procedure
- by McNabbToSkins
I am trying to pass a few NULL values to a stroed procedure but PHP always retains the varaibles to be empty strings '' and not NULL.
My DB insert function looks like this. (I am using a Framework and ADODB so if it looks weird thats why).
function insert_emp($f_name, $last_name, $dob) {
if(!isset($dob)){
$dob = NULL;
}
…