close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

I want to filter a recordset by a deabasket variable

Thread began 1/03/2014 3:29 am by John Langer | Last modified 1/09/2014 10:00 am by John Langer | 2042 views | 13 replies

John LangerBeta Tester

I want to filter a recordset by a deabasket variable

I'm on the pp_confirm.php page and want to send an email to a list of people in a loop from a recordset.

My problem is I need the ID to filter the recordset by and the only place I can see that ID is returned by PayPal and shows up in the DEA Basket Variables as $DEAbasket->DisplayInfo("ID")

I've tried to add this to the recordset and tried SESSION GET POST COOKIE etc but none of them work. If I print the code on the page (echo $DEAbasket->DisplayInfo("ID");) it shows up correctly so I know that it is there to use so to speak but how do I filter the record set?

This is my URL parameter code (which doesn't work)

$colname_rsCourse = "-1";
if (isset($_GET['$DEAbasket->DisplayInfo("ID")'])) {
$colname_rsCourse = $_GET['$DEAbasket->DisplayInfo("ID")'];
}
mysql_select_db($database_connDeaLearning, $connDeaLearning);
$query_rsCourse = sprintf("SELECT CourseID, courseTeacher1, courseTeacher2, courseTeacher3 FROM course WHERE CourseID = %s", GetSQLValueString($colname_rsCourse, "int"));
$rsCourse = mysql_query($query_rsCourse, $connDeaLearning) or die(mysql_error());
$row_rsCourse = mysql_fetch_assoc($rsCourse);
$totalRows_rsCourse = mysql_num_rows($rsCourse);

Am I on the right track?

John

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