MySQL question
#4

Quote:
Originally Posted by KyleSmith
View Post
Check the num rows.

Code:
mysql_query("SELECT * FROM `players` WHERE `Name` = '%s'", inputtext);
mysql_store_result();
if(!mysql_num_rows()) return SendClientMessage(playerid, -1, "User DOESN'T exist");
THANKS YOU!!
Reply


Messages In This Thread
MySQL question - by Yerro - 12.09.2015, 19:33
Re: MySQL question - by Kyle - 12.09.2015, 19:39
Respuesta: MySQL question - by Zume - 12.09.2015, 19:46
Respuesta: Re: MySQL question - by Yerro - 12.09.2015, 20:13
Re: Respuesta: Re: MySQL question - by Kyle - 13.09.2015, 10:38
Re: MySQL question - by iggy1 - 13.09.2015, 10:58

Forum Jump:


Users browsing this thread: 1 Guest(s)