Hi Vsarkiss,
Thanks for the response and suggestions.
The data type in the database for ordercode is numeric.
I have tried passing bind_param(1, $ordercode, SQL_INTEGER) and bind_param(1, $ordercode, NUMERIC) and bind_param(1, $ordercode, SQL_NUMERIC). None of which worked.
The data being passed is a number.