Page 1 of 1
mysqli bind_param made automatically
Posted: Wed Apr 05, 2006 6:01 am
by jmut
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.
Posted: Thu Apr 06, 2006 2:23 am
by jmut
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.
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
These are the types I should catch according to.
http://bg.php.net/manual/en/function.my ... -param.php
Thanks alot for spending time.
Cheers