Код: Выделить всё
$sql = mysql_query("select name from reseller_domain where name='" . $name . "'");
$numrows = mysql_num_rows($sql);
if ($numrows != null || $numrows == 0) {
return 'f';
} else {
return 't';
}
Подробнее здесь: https://stackoverflow.com/questions/223 ... -but-works
Мобильная версия