MySQLi: prepare(), send_long_data()

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
yakasha
Forum Newbie
Posts: 10
Joined: Wed Aug 03, 2005 1:17 pm
Location: Las Vegas, NV
Contact:

MySQLi: prepare(), send_long_data()

Post by yakasha »

Has anybody messed with these yet? I'll be inserting/updating where the data for one column could be quite large. I don't want to increase the maximum packet size for my mysql client. The functions are not yet fully documented, so I'm having trouble getting them to work.

Basically I've tried numerous order variations of:

Prepare()
Bind_param()
send_long_data()
execute()
close()


Preparing,binding, executing, and closing work fine by themselves, but send_long_data always returns false. I've tried sending the super long string to it and breaking up the string myself.

I've now just worked around it by doing something else, but not getting these to work has annoyed me. I must make them work.
Post Reply