tron00;10907923 wrote:Kinda hard to tell what you are trying to do. Could use a little bit more info. Maybe create one table called campaigns and then another one for newsletters. This way, newsletters can be associated with campaigns.
That's exactly what I'm trying to do.
But my problem is that I don't know how to add the newsletter to the campaign.
Say my newsletter table has 3 newsletters:
Newsletter 1
Newsletter 2
Newsletter 3
And I want to make 2 campaigns:
CAMPAIGN #1:
Newsletter 3
Newsletter 2
Newsletter 1
CAMPAIGN #1:
Newsletter 2
Newsletter 3
Newsletter 1
I was thinking I would use an array in the Campaign Table, with the order. So Campaign #1 would have 3,2,1 as the value and Campaign #2 would have 2,3,1 as the value.
Would this work?
If so, my first question would be: How do I get the values?
Would I have to unserialize() the value to figure out which newsletter to send everytime?