First time poster, gotta like the site though, very helpful, however, I've got a situation that I can't seem to figure out.
I need to be able to compare availability of people to find common availability.
I'd like to have Person A, who is available from say 10:00 to 14:00, and be able to search my database for people with matching availability. Has anyone done anything similar to this?
I'll admit, I don't even really know where to start. I'm trying to decide if it would be better to store availability in blocks, like having Person, Start, Finish fields in a table or if it would be better to store the times they are available, like having just Person, and Time fields in a table.
I was thinking if I can find a way to compare arrays and return similar values, I might be able to work, if you have a function that can do that, that'd be great! Thanks in advance for the help!
ps, I'm using PHP5 and Mysql 4.1.