Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
oxseyn
Wanderer


Joined: 26 Nov 2011
Posts: 71
Location: Colorado Springs

PostPosted: 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?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net