Help with replicating Websites
Posted: Thu Feb 20, 2003 4:27 pm
I am trying to build a site that allows people to sign up as members. The members then get a copy of the website, but with all their own information on it, to advertise to others. I do not know how to make it self replicate.
I have a MySQL database that I can add feilds to put the info into and have PHP draw from it, if needed.
Here's an example of what I mean:
http://www.mysite.com //this is my main domain (ex.)
MySQL DB
Table
memid--username--fname--lname--email------------------(site info)
1 scruffy Mark Smith msmith@msn.com (misc info)
The site info field could be a set of fields that diplay the info needed.
http://www.mysite.com?memid=1
The first link should display the host site. The second link should display the host site, but it should make changes according to Mark Smith's information.
Then I need that information to travel with any new user who Mark referred to the site as long as they remain in the site. So when they click links to read stuff, to sign up, etc, it should always stay Marks site that they see.
One last thing, When a new user tries to sign up from Mark's site, in the registration form is a field that displays the sponsor's memid number. How do I get that to automatically insert the correct memid in that field so that the user doesn't have to, also so that the user cannot remove or change it.
Thank you for any help on this.
I have a MySQL database that I can add feilds to put the info into and have PHP draw from it, if needed.
Here's an example of what I mean:
http://www.mysite.com //this is my main domain (ex.)
MySQL DB
Table
memid--username--fname--lname--email------------------(site info)
1 scruffy Mark Smith msmith@msn.com (misc info)
The site info field could be a set of fields that diplay the info needed.
http://www.mysite.com?memid=1
The first link should display the host site. The second link should display the host site, but it should make changes according to Mark Smith's information.
Then I need that information to travel with any new user who Mark referred to the site as long as they remain in the site. So when they click links to read stuff, to sign up, etc, it should always stay Marks site that they see.
One last thing, When a new user tries to sign up from Mark's site, in the registration form is a field that displays the sponsor's memid number. How do I get that to automatically insert the correct memid in that field so that the user doesn't have to, also so that the user cannot remove or change it.
Thank you for any help on this.