MYSQL - Reading data from Database
#3

I'm still learning the whole programming language, so I'm getting a little stumped...

With this, the player's information is saved in a database (nickname, password, ip, etc.)... Also whether or not they are an admin...

This: format(string,sizeof(string),"SELECT admin WHERE nickname='%s'",name); would give the result of either 1 for yes or 0 for no... But I just don't know how to get that value 1 or 0 out from the database and into a variable, string etc.

I've played around with a few of the MYSQL functions, but I'm stumped with this one...

And because of the way this script is written, its very important for me to be able to get this information out...

Thanks in advance for any advice...
Reply


Messages In This Thread
MYSQL - Reading data from Database - by joshAllan - 14.10.2009, 05:38
Re: MYSQL - Reading data from Database - by woot - 14.10.2009, 10:55
Re: MYSQL - Reading data from Database - by joshAllan - 14.10.2009, 11:20
Re: MYSQL - Reading data from Database - by MenaceX^ - 14.10.2009, 11:24
Re: MYSQL - Reading data from Database - by joshAllan - 14.10.2009, 11:46

Forum Jump:


Users browsing this thread: 1 Guest(s)