close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Passing Dynamic Variables

Thread began 1/04/2011 5:04 pm by Me | Last modified 1/12/2011 8:39 am by Me | 2720 views | 20 replies


Example Data from Mysql

To make this a little clearer. The page template / content is stored in mysql and is fetched by a recordset in the page sending the email. In UE it is inserted ino the Email Message Body Editor using the dynamic lightening bolt and the value in the Email Message Body Editor looks like this...

<?php echo $row_rsContent['htmlcontent']?>

Which then pulls data from the recordset/mysql table/column which looks like this below. And, for example I wish to be able to place the readerid on the "Click Here if you are unable to view this email properly" link.

<title>January Campaign One</title>
<body bottommargin="0" topmargin="5px" leftmargin="0" rightmargin="0" bgcolor="#000000">
<table border="0" align="center" cellpadding="0" cellspacing="0" width="100%" bgcolor="#000000">
<td bgcolor="#000024"><table width="600" align="center" cellpadding="0" cellspacing="0">
<td width="600" align="center" style="padding-top:5px; padding-bottom:10px; font-family:Verdana, Geneva, sans-serif; font-size:12px;"><a href="#?readerid=<?php echo $row_rsRecipients['readerid']); ?>" style="color:#FFF">Click Here if you are unable to view this email properly</a></td>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0" >
<td align="center" bgcolor="#FF0000" style="padding:15px 0px 15px 0px;font-family:Verdana,Arial;font-size:12px;font-weight:bold;color:#FFFFFF">SAVINGS ON LOTS OF PRODUCTS THROUGHOUT JANUARY 2011 VISIT WEBSITE</td>
<td align="left" bgcolor="#FFFFFF" style="padding:5px 0px 10px 0px;font-family:Verdana,Arial;font-size:11px;line-height:16px;font-weight:regular;color:#231f20; text-align:center">My Business Address</td>

Does this make it a little clearer...any help appreciated!

PS in the a link there is a #. This is for this post...the real email contains an absolute URL instead.
PSS As you can also see there are two recordsets on the page rsContent that gets the content for the page and rsRecipients which gets the id and email for each recipients. These two recordsets are available on the page sending the email.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...