What is the correct syntax for converting an inline php email variable from mysql to pdo? -
i'm converting mysql recordsets pdo. recordset no longer named feed data outgoing email object , need know how re-name variable in outgoing email.
previously mysql recordset said:
$row_rsfindemailrec = mysql_fetch_assoc($rsfindemailrec);
and outgoing $emailobj->setcontent() said:
"your last address was: {rsfindemailrec.email_address}"
that showed correctly in email users last address.
currently pdo recordset says:
$row_rsfindemailrec = $stmtfindemailrec->fetch(pdo::fetch_assoc);
but since actual recordset name rsfindemailrec, email goes out, email arrives , actual code shows {rsfindemailrec.email_address} instead of value.
i'm trying change inline, php variable in email,
{rsfindemailrec.email_address}
to whatever should new pdo style, nothing i've tried works, and, i've tried laughable options in inline php in content line, changes $stmt:
{email_address} (but it's not part of transaction , can't made so) {$rsfindemailrec.email_address} {$row_rsfindemailrec.email_address} can make work causes other issues downstream i'd rather avoid. stmtfindemailrec.email_address} {$stmtfindemailrec.email_address}
and i've tried alter head code reflect wishful thinking:
$rsfindemailrec = $stmtfindemailrec->fetch(pdo::fetch_assoc); alone , both above , below $row_rs(etc) nope. $rsfindemailrec = $row_rsfindemailrec;
like thomas edison, i've discovered whole bunch of new ways not it, not correct one. time stack: how rename {rsfindemailrec.email_address} pdo? or source variable should using replace 1 in outgoing email show value of variable in email message?
thanks help.
Comments
Post a Comment