I have a SQL statement that returns the following list:
Email | Client_ID | Search | Description
test@test.com | 1 | chevrolet | chevrolet, in new condition
test@test.com | 1 | chrysler | very nice chrysler, $ 500
mail@mail.com | 2 | chrysler | good chrysler as new
Email = e-mail address
Clienst_ID = ID of the client
Search = Keyword that a client entered in the database to search for
Description = The result from the database based on the keyword.
These are matching search results for all clients. The amount of matching results will always vary, just like the number of clients. Sometimes there won't be any matches at all.
Now I would like to achieve the following:
Send an e-mail to all clients with the right search results. In this case it would be:
One e-mail to test@test.com, with two search results in the e-mail. It would have to show the 2 description fields:
- chevrolet, in new condition
- very nice chrysler, $ 500
One e-mail to mail@mail.com with one search result in the e-mail. It would have to show one desciption field:
- good chrysler as new
Any ideas ? I will be using CDONTS.
Email | Client_ID | Search | Description
test@test.com | 1 | chevrolet | chevrolet, in new condition
test@test.com | 1 | chrysler | very nice chrysler, $ 500
mail@mail.com | 2 | chrysler | good chrysler as new
Email = e-mail address
Clienst_ID = ID of the client
Search = Keyword that a client entered in the database to search for
Description = The result from the database based on the keyword.
These are matching search results for all clients. The amount of matching results will always vary, just like the number of clients. Sometimes there won't be any matches at all.
Now I would like to achieve the following:
Send an e-mail to all clients with the right search results. In this case it would be:
One e-mail to test@test.com, with two search results in the e-mail. It would have to show the 2 description fields:
- chevrolet, in new condition
- very nice chrysler, $ 500
One e-mail to mail@mail.com with one search result in the e-mail. It would have to show one desciption field:
- good chrysler as new
Any ideas ? I will be using CDONTS.