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
I have the error
.....
where admin3_adherents.user_id = {rowid};
....
I dont understand
Thank you for your help
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();
.....
where admin3_adherents.user_id = {rowid};
....
I dont understand
Thank you for your help