|
oxseyn Wanderer
Joined: 26 Nov 2011 Posts: 71 Location: Colorado Springs
|
Posted: Wed Mar 21, 2012 5:56 am
How to retrieve a specific item from a database? |
I made a simple database named characters. In that database there are two fields, name and password (just doing proof of concept, more will be added).
My window names correspond to the names of my characters.
So, I've got an onConnect event which does #DBLOAD ch.
I'm then trying to extract the value in the password field where the name field=%window.
I tried a whole bunch of permutations of:
#DBGET %dbget, but nothing seemed to work. Any suggestions? |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Mar 21, 2012 10:14 pm |
You are probably better off using the SQL functionality instead of the legacy DB stuff. Beyond that, try reading the helpfiles on working with the Database and the various #DB commands and %db functions.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|