var currentUser = ew.ajax("<?php echo Encrypt("SELECT COUNT(*) FROM s_group_details WHERE GROUP_ID = 'GRP177' AND MEMBERSHIP_LEVEL = 10 AND MEMBER_ID = '{query_value}'"); ?>", currUserID);
This is the code, this is displaying undefined.
var currentUser = ew.ajax("<?php echo Encrypt("SELECT COUNT(*) FROM s_group_details WHERE GROUP_ID = 'GRP177' AND MEMBERSHIP_LEVEL = 10 AND MEMBER_ID = '{query_value}'"); ?>", currUserID);
This is the code, this is displaying undefined.
Your argument is wrong, you may read the examples of Ajax by API and Client Script.