Author |
Message |
Initrd.gz Seasoned Helper
Joined: Sep 18 2008 Posts: 134 Location: Over there ---> Offline
|
Posted: 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. |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: 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. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
Initrd.gz Seasoned Helper
Joined: Sep 18 2008 Posts: 134 Location: Over there ---> Offline
|
Posted: 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. |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: 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. |
|
Back to top |
|
 |
|