Epitaffio
Joined: 13 Jul 2010 Posts: 29 Location: Italy
|
Posted: Fri May 27, 2011 15:56 Post subject: SQLGetData() problem |
|
|
Hi all, i have a problem/question with the SQLGetData function.
First of all, my server is an ubuntu 9.04 32bit (need to upgrade) and i use MySQL as database engine. For the odbc connect, i use the .so downloaded here: http://nwn.virusman.ru/trac/nwnx2-linux/downloader
The script included for the database functions is the aps_include (in the script there is a comment: "Modified : February 16, 2003")
I have a table named "personaggi" with 11 columns, the last one is a column named "login". I do this:
Code: |
string sSQL = "SELECT Login FROM personaggi WHERE ID = "+sPcID;
SQLExecDirect(sSQL);
sPcLogin = SQLGetData(1);
|
sPcLogin will return as result the first column of the table personaggi, if i use SQLGetData(11), it will result the right column value .-.
I think it's an issue with the aps_include, what do you think about it? |
|