I am attempting to query a database using the username from a login form.
I am having trouble understanding if it’s impossible due to parsing order of Expression
Engine. Should I be performing this in PHP with a manual connection to the database and an AJAX response?
Please note, the Members Module is not appropriate because I am creating a psudeo login where the password is pre-defined.
{exp:query sql="SELECT * FROM exp_freeform_entries WHERE email = '<?php $username ?>'"}
Result!
{if no_results}
Sorry, no results
{/if}
{/exp:query}If anyone could provide a solution I’d be most grateful.
Thanks