Ability to pass MySQL Results?
Ok, so I am trying to send a result handle from another plugin to another by a native.
Base: Code:
Include file: Code:
Plugin using the native: Code:
I haven't got it to work. So, is it possible to pass Result handles or not? If it is, what have I done wrong? Thanks, for your time. |
yes, you can.
however, you're using param_convert on a byvalue parameter, this will return garbage. I recommend using the other form if you can as it's harder to run into that type of mistake. |
You mean using the default mode for register_native(). Okay I did it, but it's still not working, actually it's not even exceuting the query anymore as it did before.
Code:
|
Show me how you're using it for the native. Also! Note unfortunately there was a bug in get_array in 1.55 that makes it not work. This has been fixed in the upcoming 1.60.
So, I guess you should use param_convert method for now after all ;] just make sure you don't use it on non-byref parameters. |
Code:
|
Oh my god even this isn't working...
Code:
|
This should work:
Code:
If none of this is working for you, I suggest outputting values each step of the way and telling me what they are, and what the expected values are. That way we can debug it. |
| All times are GMT -4. The time now is 14:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.