- 1
- 2
- 3
- 4
- 5
- 6
- 7
$sth=$dbh->prepare("SELECT count(*) FROM ".SQL_ADMIN_TABLE." WHERE type='ipban' AND ? & ival2 = ival1 & ival2;") or make_error(S_SQLFAIL);
$sth->execute($numip) or make_error(S_SQLFAIL);
if(($sth->fetchrow_array())[0])
{
$sth=$dbh->prepare("SELECT comment FROM ".SQL_ADMIN_TABLE." WHERE type='ipban' AND ? & ival2 = ival1 & ival2;") or make_error(S_SQLFAIL);
$sth->execute($numip) or make_error(S_SQLFAIL);
}
Lure Of Chaos 08.10.2010 19:02 # 0