13.01.2015, 21:51
The "mysql connection" thing, which i called connectionHandle, is the value returned by the mysql_connect function (https://sampwiki.blast.hk/wiki/MySQL/R33#mysql_connect). You need to connect to a database before running any query.
I'm not sure if what bgedition wrote there actually works, you'll have to test it. I have my doubts, because as far as I know, the cache functions will return the correct values only if they are somehow related to the "parent" query, so they must be used within a callback which is called by that query, as I wrote in my example (the QueryResultCallback thing).
Regarding other versions, I guess this should work on them too, because I see some R35, R36 references on the wiki page. Also, there is this paragraph at the top of the page:
I'm not sure if what bgedition wrote there actually works, you'll have to test it. I have my doubts, because as far as I know, the cache functions will return the correct values only if they are somehow related to the "parent" query, so they must be used within a callback which is called by that query, as I wrote in my example (the QueryResultCallback thing).
Regarding other versions, I guess this should work on them too, because I see some R35, R36 references on the wiki page. Also, there is this paragraph at the top of the page:
Quote:
Documentation for BlueG's MySQL plugin version R33 and later. |