Dear Sir,
We're a group of highly motivated and focused individuals working together to create value for our customers. Our company is based out of Pune, India and our most formidable strengths are: strong analytical and problem solving skills, ability to conceive and design the technical solution of the application, ensuring that the ideas and thoughts are captured well and translated into work to the fullest.
We specialize in Web Application Development (HTML, CSS, PHP, Javascript, jQuery, AJAX, Joomla! and Wordpress) and Mobile Applications. Our team comprises of individuals having more than 6 years of experience in IT field, having worked in all the areas of software development lifecycle and on various technologies (PHP, Java, C, Databases, Mainframes, etc). With our varied experience, expertise and Computer Sciences background, we believe we can assist you with your business needs of designing the "Fan Loyalty Check" algorithm. You could be assured of working with experienced PHP programmers and receiving quality services, coupled with great communication throughout.
Have already answered both your questions in the PMB (the issue is you can't use PHP variables when using AJAX). You can check and verify if it works!
I also have a better alternative for you in the PMB
Thanks.