in reply to mySQL non-string bind variable

I would assign the results to an array. Then process the array.
You will need to add a loop if you want to process more than one row of data.
Read here for more info on fetchrow_array.
Jim