Redirection of Survey Participants based on Subject Number
I am creating a survey instrument using MySQL and I need some help please:
Let's assume there are 16 subjects in my survey and four conditions (layouts) and 5 different treatments (choice sets) in those conditions.
I want Subjects 1,5,9 & 13 to get directed to Layout 1 and also to a random choice set out of the 5.
I want Subjects 2,6,10 & 14 to get directed to Layout 2 and also to a random choice set of the 5.
I want Subjects 3,7,11,15 to get directed to Layout 3 and also to a random choice set of the 5.
I want Subjects 4,8,12,16 to get directed to Layout 4 and also to a random choice set of the 5.
As of now I have a URL cookie set which keeps track of the Subject which is ironed out. But now I need help finding a way to have my webpage direct these subjects to the various layouts and choice sets as I stated above.
I'm a complete noob with cookies, mysql and php and the limited resources I have at my disposal just aren't cutting it -- I am in need of some serious consultation.