vedendo la sua funzione a me sembra più corretto così
Codice PHP:$sql="SELECT site FROM tabella_blockedsite WHERE site LIKE '%$str%'";
$result=mysql_query($sql);
if($row = mysql_fetch_array($result))
{
return true;
}
return false;
vedendo la sua funzione a me sembra più corretto così
Codice PHP:$sql="SELECT site FROM tabella_blockedsite WHERE site LIKE '%$str%'";
$result=mysql_query($sql);
if($row = mysql_fetch_array($result))
{
return true;
}
return false;