Help :D
#3

pawn Код:
format(string, 128, "SELECT * FROM tablename WHERE fieldname='%s'", inputtext);
mysql_query(string);
mysql_store_result();
if(mysql_num_rows())
{
// your code
}
mysql_free_result();
If you're trying to find out if the inputtext exists from a table of a certain field name with MySQL, that's how you do it.
Reply


Messages In This Thread
Help :D - by ColdRain - 11.04.2012, 17:49
Re: Help :D - by ReneG - 11.04.2012, 18:04
Re: Help :D - by Skribblez - 11.04.2012, 18:08
Re: Help :D - by ColdRain - 11.04.2012, 18:20
Re: Help :D - by Skribblez - 11.04.2012, 18:24

Forum Jump:


Users browsing this thread: 2 Guest(s)