hi,
Anybody know how could I automatically bind_params when using mysqli.
So after I prepare methods I don't have to supply field_types and execute directly.
mysqli bind_param made automatically
Moderator: General Moderators
I came up to an interesting solution.
I will check the type of the values that comes in and that is how I will determine column_types to use for bind_param.
Althought not the exactly correct approach I think it will do.
One problem though. Do you know if I could determine if the incomind data is blob.
http://bg.php.net/manual/en/function.my ... -param.php
Thanks alot for spending time.
Cheers
I will check the type of the values that comes in and that is how I will determine column_types to use for bind_param.
Althought not the exactly correct approach I think it will do.
One problem though. Do you know if I could determine if the incomind data is blob.
These are the types I should catch according to.i corresponding variable has type integer
d corresponding variable has type double
s corresponding variable has type string
b corresponding variable is a blob and will be send in packets
http://bg.php.net/manual/en/function.my ... -param.php
Thanks alot for spending time.
Cheers