Chapter 15: E-campaign System 549 toggleDescField() This is (Web site domain)

Chapter 15: E-campaign System 549 toggleDescField() This is a utility method that toggles the DESC option used in the report column title links to toggle the column s ascending or descending order. Testing the E-Campaign System Now that you have all the e-campaign applications built, you re ready to test them. You ll need a database with a table that has numeric record ID (to be mapped to REC_ID), an e-mail address field (to be mapped to EMAIL), and, optionally, the first name field (to be mapped to FIRST) and last name field (to be mapped to LAST). Of course, you can have additional fields that map to AGE, SEX, INCOME, and so on, as well as standard personalization fields. In this test, I assume that you have a test database called PRODDB, which has a table called PHPCustomers with fields called custid (REC_ID), fname (FIRST), lname (LNAME), and e-mail (EMAIL). I also assume that this database is on a host called diablo.evoknow.com and the user name and password needed to access this MySQL database are scott and tiger, respectively. Also, make sure that you have some valid data in the table to be able to test the campaign. If you have a PHP MyAdmin application installed on a system, you can easily add sample data via its interface. We also assume that the e-campaign applications can be accessible via the http://www.evoknow.com/php/ecampaign/ecampaign_mngr.php main interface application. Creating a list To create the previously mentioned list, run the ecampaign_mngr.php application and click on the Add List button. This will show the interface shown in Figure 15-11.

Leave a Reply