The Active Record plugin allows you to use CodeIgniter’s Active Record database pattern in the form of a template tag. It is meant as a replacement for the standard query module.
For example, you can replace this:
{exp:query sql="SELECT member_id, username FROM exp_members WHERE group_id = 1"}
{username} - {member_id}
{/exp:query}With this:
{exp:activerecord select="member_id, username" from="members" where:group_id="1"}
{username} - {member_id}
{/exp:activerecord}If you like this plugin, please rate and/or favorite it on Devot://ee 😊