MySQL Help here PLEASE!
#2

use mysql_num_rows to check if the row returns true or false.

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
}
Reply


Messages In This Thread
MySQL Help here PLEASE! - by iBeast - 05.01.2014, 18:19
Re: MySQL Help here PLEASE! - by Patrick - 05.01.2014, 18:27
Re: MySQL Help here PLEASE! - by iBeast - 05.01.2014, 18:35

Forum Jump:


Users browsing this thread: 1 Guest(s)