[MYSQL] Check if username exists?
#2

Код:
new string[128];
format(string, sizeof(string), "SELECT `something` FROM `table` WHERE `name` = '%s'", Name);
mysql_query(string);
if(mysql_num_rows() > 0)
{
//account exists
return 1;
}
else
{
//doesnt exist
return 0;
}
Reply


Messages In This Thread
[MYSQL] Check if username exists? - by coole210 - 27.05.2010, 02:23
Re: [MYSQL] Check if username exists? - by lolumadd - 27.05.2010, 02:29
Re: [MYSQL] Check if username exists? - by coole210 - 27.05.2010, 02:40
Re: [MYSQL] Check if username exists? - by Kyosaur - 27.05.2010, 02:41
Re: [MYSQL] Check if username exists? - by coole210 - 27.05.2010, 12:48
Re: [MYSQL] Check if username exists? - by lolumadd - 27.05.2010, 18:59
Re: [MYSQL] Check if username exists? - by coole210 - 30.05.2010, 21:03
Re: [MYSQL] Check if username exists? - by coole210 - 30.05.2010, 23:03
Re: [MYSQL] Check if username exists? - by coole210 - 31.05.2010, 21:13
Re: [MYSQL] Check if username exists? - by [HiC]TheKiller - 31.05.2010, 21:29
Re: [MYSQL] Check if username exists? - by coole210 - 31.05.2010, 21:58
Re: [MYSQL] Check if username exists? - by lolumadd - 01.06.2010, 02:15
Re: [MYSQL] Check if username exists? - by coole210 - 01.06.2010, 02:18
Re: [MYSQL] Check if username exists? - by Antonio [G-RP] - 01.06.2010, 02:20
Re: [MYSQL] Check if username exists? - by coole210 - 01.06.2010, 02:48
Re: [MYSQL] Check if username exists? - by coole210 - 01.06.2010, 19:24
Re: [MYSQL] Check if username exists? - by lolumadd - 01.06.2010, 20:27
Re: [MYSQL] Check if username exists? - by coole210 - 01.06.2010, 21:07
Re: [MYSQL] Check if username exists? - by coole210 - 03.06.2010, 16:23

Forum Jump:


Users browsing this thread: 1 Guest(s)