Checking if account exists
#4

try using this query string:
pawn Код:
format(Query, sizeof Query, "SELECT * FROM `accounts` WHERE `Name`='%s' LIMIT 1", name);
this selects all accounts have the name which is valued as 'name' and '%s' in the format code, "LIMIT 1" for selecting 1 result that has that name.
Reply


Messages In This Thread
Checking if account exists - by Luis- - 09.02.2015, 18:18
Re: Checking if account exists - by HazardouS - 09.02.2015, 18:24
Re: Checking if account exists - by Luis- - 09.02.2015, 18:32
Re: Checking if account exists - by Sawalha - 09.02.2015, 18:33
Re: Checking if account exists - by Luis- - 09.02.2015, 18:41
Re: Checking if account exists - by Sawalha - 09.02.2015, 18:45
Re: Checking if account exists - by Luis- - 09.02.2015, 18:47
Re: Checking if account exists - by Sime30 - 09.02.2015, 18:48
Re: Checking if account exists - by HazardouS - 09.02.2015, 18:53
Re: Checking if account exists - by Sime30 - 09.02.2015, 18:57

Forum Jump:


Users browsing this thread: 1 Guest(s)