I have a HTML table where a user can subscribe.I send an ajax call when the user clicks the subscribe button and store it in a non ee table.Next time when the user comes on the same page,I want to show "you have subscribed instead of subscribe".PHP stage is input.
Because of some reasons,i cant store my data in exp_members_data.Since i am using a non ee table,
How can i query it to get the desired result.
Any solution? This is what I am doing.
{exp:query sql="SELECT screen_name, email, location FROM My_table WHERE user = 'subscribed'"}
{screen_name}
{email}
{location}
{/exp:query}