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

Binding dynamic data into email

Thread began 6/24/2010 11:13 am by christina.elissa4324782 | Last modified 1/21/2011 3:44 pm by christina.elissa4324782 | 2970 views | 18 replies


I am editing the template for the email. I grabbed the mysql select statement from the results page (created with data assist and manipulated for my needs):

$ParamattendeeId_WADAattendee = "-1";
if (isset($_GET['attendeeId'])) {
$ParamattendeeId_WADAattendee = (get_magic_quotes_gpc()) ? $_GET['attendeeId'] : addslashes($_GET['attendeeId']);
$ParamSessionattendeeId_WADAattendee = "-1";
if (isset($_SESSION['WADA_Insert_attendee'])) {
$ParamSessionattendeeId_WADAattendee = (get_magic_quotes_gpc()) ? $_SESSION['WADA_Insert_attendee'] : addslashes($_SESSION['WADA_Insert_attendee']);
$ParamattendeeId2_WADAattendee = "-1";
if (isset($_GET['attendeeId'])) {
$ParamattendeeId2_WADAattendee = (get_magic_quotes_gpc()) ? $_GET['attendeeId'] : addslashes($_GET['attendeeId']);
mysql_select_db($database_ifpaDataBase, $ifpaDataBase);
$query_WADAattendee = sprintf("SELECT attendee.attendeeId, CONCAT_WS(' ',salutation, firstName, middleInitial, lastName) AS name , rankService, positionTitle, company, street, street2, city, stateCountry, postalCode, phoneNumber, faxNumber, email, payBy, paid, GROUP_CONCAT(sessionName SEPARATOR '; ') AS sessions FROM attendee LEFT JOIN attendeeSessions ON attendeeSessions.attendeeId = attendee.attendeeId LEFT JOIN sessions ON sessions.sessionId = attendeeSessions.sessionId WHERE attendee.attendeeId = %s OR ( -1= %s AND attendee.attendeeId= %s) GROUP BY attendee.attendeeId", GetSQLValueString($ParamattendeeId_WADAattendee, "int"),GetSQLValueString($ParamattendeeId2_WADAattendee, "int"),GetSQLValueString($ParamSessionattendeeId_WADAattendee, "int"), GetSQLValueString($ParamattendeeId_WADAattendee, "int"),GetSQLValueString($ParamattendeeId2_WADAattendee, "int"),GetSQLValueString($ParamSessionattendeeId_WADAattendee, "int"));
$WADAattendee = mysql_query($query_WADAattendee, $ifpaDataBase) or die(mysql_error());
$row_WADAattendee = mysql_fetch_assoc($WADAattendee);
$totalRows_WADAattendee = mysql_num_rows($WADAattendee);

I did have some errors in the sql, but I fixed them and am still not getting an email

have I done something incorrectly with using this code? I'm connecting to the database fine, the information is being inserted into the database correctly. It's just not emailing.

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...