05.01.2014, 18:27
use mysql_num_rows to check if the row returns true or false.
example
example
pawn Код:
if(mysql_num_rows() == 1)
{
//does exist
}
else if(mysql_num_rows() == 0)
{
//does not exist
}
//or
new rows = mysql_num_rows();
if(rows)
{
//does exist
}
else if(!rows)
{
//does not exist
}