ASSS Questions - What exactly is db_res? Initrd.gz - Sun Jan 25, 2009 4:23 pm Post subject: What exactly is db_res?
How do you use it? It is from the reldb.h include. I just want to get/store some data in a database. There is almost no documentation on it. What is it used for?
Same with query_callback.
Thanks for the help.
Dr Brain - Sun Jan 25, 2009 8:09 pm Post subject:
You don't use it directly. You're given it in the query callback, and you can get information out of it using the Ireldb Get functions.
Look at aliasdb for more information. The hscore_database.c file also uses Ireldb extensively, though there's some bad techniques in there.
Initrd.gz - Thu Jan 29, 2009 6:12 pm Post subject:
K, thanks. For anyone who is searching the board, its an SQL result.
Another question: To get the first row using GetRow from reldb.h, do you pass 0 or 1 as the parameter?
Thanks in advanced.
Dr Brain - Thu Jan 29, 2009 6:51 pm Post subject:
GetRow doesn't accept an integer as a parameter, so I'll assume you meant GetField. Indexes for GetField start at 0.