Ted Varnson
11-15-2005, 07:50 PM
First of here is my goal. I am creating a control panel to be used by the admin of at least 4 different sites. Each site is in the data base in the sites table.
What we have at the moment are 4 affiliated band sites that are going to be posting blogs while they are touring around the country together. All of the blogs will go into the same database table. However what I want to do is be able to assign each post to a site.
I have it set at the moment to be assigned to 1 site (and it will display on that sites blog page), however we are needing to have the option to assign the blog to display on say site 1 and 2, site 2 and 3, site 1 and 4, so on and so forth.
I have set up a select multiple box that displays all the sites that can be chosen, where I run into trouble is how to store the assignment in the database.
As is I can see that if I put it in an array and send to the DB it is store as the numbers of the site IDs combined.
Sorry for the lengthy post, just wanted to cover my bases. Any suggestions will be helpful. I'm not totally versed in PHP, but have a medium understanding of it.
Thanks a lot.
What we have at the moment are 4 affiliated band sites that are going to be posting blogs while they are touring around the country together. All of the blogs will go into the same database table. However what I want to do is be able to assign each post to a site.
I have it set at the moment to be assigned to 1 site (and it will display on that sites blog page), however we are needing to have the option to assign the blog to display on say site 1 and 2, site 2 and 3, site 1 and 4, so on and so forth.
I have set up a select multiple box that displays all the sites that can be chosen, where I run into trouble is how to store the assignment in the database.
As is I can see that if I put it in an array and send to the DB it is store as the numbers of the site IDs combined.
Sorry for the lengthy post, just wanted to cover my bases. Any suggestions will be helpful. I'm not totally versed in PHP, but have a medium understanding of it.
Thanks a lot.