$result = dbrows(dbquery("SELECT * FROM `".DB_PREFIX."invites` WHERE `invite_id`='".$userdata['user_id']."'"));
$result = dbrows(dbquery("SELECT * FROM `".DB_PREFIX."invites` WHERE `invite_id`='".$data['user_id']."'"));