close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

data from recordset not showing in email

Thread began 12/14/2011 2:11 am by troy310770 | Last modified 3/07/2012 12:33 am by Ray Borduin | 2504 views | 6 replies |

troy310770

data from recordset not showing in email

I am using v4.01.
I added the recordset to my page then added the email. I selected the template and modified the template.
The emails are formated correctly and look good, but none of the data from my recordset is showing. Is there an extra step to get it to display correctly?

Sign in to reply to this post

Ian S

Hi Troy,

I think this three might help to point you in the right direction...

showthread.php?t=17869

Cheers
Ian

Sign in to reply to this post

troy310770

I have made the changes and it is still not sending correctly.

I have made these changes:
Replaced
Plan ID: <?php echo $row_User['ID']?><br />
PO/Plan Name: <?php echo $row_User['skPlanID']?><br />
Name:<?php echo $row_User['skUserName']?><br />
Email:<?php echo $row_User['skUserEmail']?><br />

With This
Plan ID#:<?php echo($RecipArray[$RecipIndex][0]["ID"]); ?><br />
PO/Plan Name: <?php echo($RecipArray[$RecipIndex][0]["skPlanID"]); ?><br />
Name:<?php echo($RecipArray[$RecipIndex][0]["skUserName"]); ?><br />
Email:<?php echo($RecipArray[$RecipIndex][0]["skUserEmail"]); ?><br />

The emails are going to both email addesses, but the data is different in both
The data that should be displayed is:
ID: 274
skPlanID: Troy's Set
skUserName: Troy Doe
ksUserEmail: troy@myemail.com

The first email displays:
ID: t
skPlanID: t
skUserName: t
ksUserEmail: t

The second email displays:
ID:
skPlanID: 3
skUserName:
ksUserEmail:

Thanks for your help!

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

sublucentBeta Tester

Also getting t's

Hello,

I'm also getting "t" in my emails. I've searched the UE threads extensively for a fix but the promising ones always lead to support tickets. I attached some of the different versions of files that I tried to get to work, templates, the waue_index and the resulting email.
Thanks in advance for your time.

-Jeremy

Attached Files
emailproblems.zip
Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

Ray BorduinWebAssist

If you aren't sending email to the recordset loop and you are just trying to refer to another recordset in your email body, you probably have to move back to your original format:


Plan ID: <?php echo $row_User['ID']?><br />
PO/Plan Name: <?php echo $row_User['skPlanID']?><br />
Name:<?php echo $row_User['skUserName']?><br />
Email:<?php echo $row_User['skUserEmail']?><br />


and just add this to the top of the email template:

<?php
global $row_User;
?>

Sign in to reply to this post

sublucentBeta Tester

Year Later, Same Problem - recordset data in email

Hello again,

A year ago you helped me with this in Technical Support Ticket # 140049. I've looked over the files that you helped me with back then and I can't see anything that I am doing different. The files from last year still work fine I just can't get my new project to pass any information from the recordset into my email. I would also like to do a loop around the information pertaining to the clients order, how do I go about accomplishing that once the rest of it is working?

The files I'm working with are attached, let me know if you need any thing else.

Thanks so much for your time!

Attached Files
shippingEmail.zip
Sign in to reply to this post

Jason ByrnesWebAssist

your recordset is set to filter on the orderID url variable, make sure this is included in the forms action:


php:
<form  action="ordersDetail.php?orderID=<?php echo(isset($_GET['orderID'])?$_GET['orderID']:""); ?>" name="shipEmail" method="post">





to show the order contents, add the repeat region for the order details recordset to the email template page and the bindings to show the columns from the order details recordset.

Sign in to reply to this post

sublucentBeta Tester

Solved!

I knew I was over looking something simple.

Thank you!

In case anyone else is wondering about loops in emails, I also had to add a global for the while loop to work with.

php:
<?php
global $row_rsOrders;
global 
$row_rsOrderItems;
global 
$rsOrderItems;
?> 
<?php do { ?>
info to loop
<?php } while($row_rsOrderItems mysql_fetch_assoc($rsOrderItems)); ?>
Sign in to reply to this post
loading

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

Content

rating

Layout

rating

Ease of use

rating

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