email form plugin placeholders

leblancphil

Member
I really have problems with placeholders in email plugin form.
I cant have all the placeholders in my mail so I have used a php model with {rowid} query and I have this :
If I only put this
$idrow = '{rowid}';
echo $idrow;
I can see the value in the mail
But when I try
Code:
$idrow = '{rowid}';

$myDb = JFactory::getDbo();
$myQuery = $myDb->getQuery(true);
$myQuery
->select ('prenom')
->from('admin3_adherents')
->where('admin3_adherents.user_id = '.$idrow);
$myDb->setQuery($myQuery);
$prenom = $myDb->loadResult();
I have the error
.....
where admin3_adherents.user_id = {rowid};
....
I dont understand
Thank you for your help
 
Hi , I need help for this, I know, I have posted 3 messages but this problem is the most important.

Thank you
 
Last edited:
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top