Пардоньте. Лучше так, ибо 0 не пропустит
$userId = intval($alb['userid']);
if (ctype_digit($userId) && $userId >= 0) {
add_coins($userId, '5');
} Пардоньте. Лучше так, ибо 0 не пропустит
$userId = intval($alb['userid']);
if (ctype_digit($userId) && $userId >= 0) {
add_coins($userId, '5');
}