$result = dbrows(dbquery("SELECT * FROM ".DB_PREFIX."invites WHERE invite_user_id='".$userdata['user_id']."'")); echo "Pakviete: $result";