close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

"200 OK" Response from Firebug

Thread began 5/21/2013 11:09 pm by M2Media | Last modified 5/22/2013 5:36 pm by M2Media | 1201 views | 10 replies

Jason ByrnesWebAssist

it doesnt matter that you reinstalled the database.

what i am saying is that you reinstalled the files.


by default the query in the admin_pm/common/mailing_functions.php file does not include the ORDER BY CLAUSE

the code for the query is:

$query_AudienceMembers = sprintf('SELECT pm1_users.UserID AS UserID, UserEmail, UserFirstName, UserLastName, UserCity, UserState, UserZip, UserEmailVerified, UserRegistrationDate, UserIP, UserPhone, UserFax, UserCountry, UserAddress, UserAddress2, UserGroupID, UserSubscribed, AudienceID, MailingSent FROM pm1_users INNER JOIN pm1_mailing_audience_members ON pm1_users.UserID = pm1_mailing_audience_members.UserID INNER JOIN pm1_mailings ON pm1_mailings.MailingID = pm1_mailing_audience_members.MailingID WHERE pm1_mailings.MailingID = %s'.( ($unsentOnly)? ' AND pm1_mailing_audience_members.MailingSent = 0' : ''), GetSQLValueString($mailingID, 'int'));


so by executing your SQL:
SELECT pm1_users.UserID AS UserID, UserEmail, UserFirstName, UserLastName, UserCity, UserState, UserZip, UserEmailVerified, UserRegistrationDate, UserIP, UserPhone, UserFax, UserCountry, UserAddress, UserAddress2, UserGroupID, UserSubscribed, AudienceID, MailingSent FROM pm1_users INNER JOIN pm1_mailing_audience_members ON pm1_users.UserID = pm1_mailing_audience_members.UserID INNER JOIN pm1_mailings ON pm1_mailings.MailingID = pm1_mailing_audience_members.MailingID WHERE pm1_mailings.MailingID = 41 AND pm1_mailing_audience_members.MailingSent = 0 ORDER BY UserID DESC

using the ORDER BY Clause, you are not using the same order as is used in the admin_pm/common/mailing_functions.php


you have 2 options:
1) Edit the recordset in the admin_pm/common/mailing_functions.php file to add the order by clause
$query_AudienceMembers = sprintf('SELECT pm1_users.UserID AS UserID, UserEmail, UserFirstName, UserLastName, UserCity, UserState, UserZip, UserEmailVerified, UserRegistrationDate, UserIP, UserPhone, UserFax, UserCountry, UserAddress, UserAddress2, UserGroupID, UserSubscribed, AudienceID, MailingSent FROM pm1_users INNER JOIN pm1_mailing_audience_members ON pm1_users.UserID = pm1_mailing_audience_members.UserID INNER JOIN pm1_mailings ON pm1_mailings.MailingID = pm1_mailing_audience_members.MailingID WHERE pm1_mailings.MailingID = %s'.( ($unsentOnly)? ' AND pm1_mailing_audience_members.MailingSent = 0 ORDER BY UserID DESC' : ''), GetSQLValueString($mailingID, 'int'));


or 2) Dont use the order by clause in your query:
SELECT pm1_users.UserID AS UserID, UserEmail, UserFirstName, UserLastName, UserCity, UserState, UserZip, UserEmailVerified, UserRegistrationDate, UserIP, UserPhone, UserFax, UserCountry, UserAddress, UserAddress2, UserGroupID, UserSubscribed, AudienceID, MailingSent FROM pm1_users INNER JOIN pm1_mailing_audience_members ON pm1_users.UserID = pm1_mailing_audience_members.UserID INNER JOIN pm1_mailings ON pm1_mailings.MailingID = pm1_mailing_audience_members.MailingID WHERE pm1_mailings.MailingID = 41 AND pm1_mailing_audience_members.MailingSent = 0

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