Hello,
Could anyone tell me if it is possible to bind a null value to a
statement? I.E.
$stmt->bind_param('is d',$var1,$var2, $var3);
$var1 = (something indicating null);
$var2 = (something indicating null);
$var3 = (something indicating null);
This would be useful as I have form fields that are not required and
link to database fields that allow nulls. It would be nice to include
all fields in the statement but assign a null value to fields for which
the user did not fill in the corresponding form element.
Thank you,
Ryan
Could anyone tell me if it is possible to bind a null value to a
statement? I.E.
$stmt->bind_param('is d',$var1,$var2, $var3);
$var1 = (something indicating null);
$var2 = (something indicating null);
$var3 = (something indicating null);
This would be useful as I have form fields that are not required and
link to database fields that allow nulls. It would be nice to include
all fields in the statement but assign a null value to fields for which
the user did not fill in the corresponding form element.
Thank you,
Ryan
Comment