Ok another table, I'll try that thanks. However, I'm still stuck. If you'll forgive me I'm new to PHP and Databases.
I still have no idea how to work out what months the user is entitled to. At the moment I have the date the user signed up in one column and then the date the users membership expires in another. Each page of a monthly shoot checks to see whether the date it was published is equal to or greater than the sign-up date and equal to or less than expiry date.
As you can see this will not allow me to add additional months that may fall before or after the persons membership. Also if the member waits several months before resigning up then surely there must be an easier way than putting four columns. One for the first sign-up one for the first expiry then another for the second sign-up and the last for the second expiry, such as "01/01/05" "01/01/06" then "01/05/06" "01/05/07" As you can see that would be the only way of preventing him from accessing shoots from Feb-May. If I just put the end date a year ahead it wouldn't work.
I'm sure there is a php or mysql command I'm missing here but as I say I'm new. Anyone got any ideas? It's a pity I can just number months then put all the ones the user is entitled to into one column like, "1 2 3 4 5 6 7 8 9 10 11 12 16 18" etc then check to see if the month number is contained in that. I'm pretty sure doing it that way i'd need to put each number it seperate columns
Im stuck!
Mike
|