MySQL - ConnectionHandle Error.
#1

I want to know, how to set ConnectionHandle ID/number, in mysql_query, because I have 2 different querys, one for Player Stats and one for Personal Cars...
Quote:

Errors in mysql debug file: mysql_query( Connection handle: 2 )
mysql_query() - Invalid connection handle. (You set: 2, Highest connection handle ID is 0).

Код:
(query[], resultid, extraid, connectionHandle)
I have "query", and "resultid", but if I want to skip "extraid", how do I do?
For example:"
Код:
    format(string, sizeof(string), "SELECT * FROM accounts WHERE Username = '%s'", account);
    mysql_query(string);
Cheers!
Reply
#2

pawn Код:
mysql_query(query[], resultid, 0, connectionHandle);
Reply
#3

EDIT: I solved that, but now I get those errors:

Quote:

mysql_query( Connection handle: 1 )
mysql_query() - Invalid connection handle. (You set: 1, Highest connection handle ID is 0).
mysql_store_result( Connection handle: 1 )
mysql_store_result() - Invalid connection handle. (You set: 1, Highest connection handle ID is 0).
mysql_num_rows( Connection handle: 1 )
mysql_num_rows() - Invalid connection handle. (You set: 1, Highest connection handle ID is 0).
mysql_free_result( Connection handle: 1 )
mysql_free_result() - Invalid connection handle. (You set: 1, Highest connection handle ID is 0).

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)