If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Yes, if you need specific help for your own question that goes beyond this one, it is better to start a new thread. (You will also receive more attention that way, rather than in the old thread here.)
You can link back to this one as needed.

But since your question is related and might be simple to solve, let me see if this helps:
You can add the following code to all of the lines as needed:&& $m>10
That means "and it is 10 minutes after the hour". Adjust as needed.

Does that solve the problem? If you need more help and we need to have a longer conversation, I do recommend a new thread.

Yes, if you need specific help for your own question that goes beyond this one, it is better to start a new thread. (You will also receive more attention that way, rather than in the old thread here.)
You can link back to this one as needed.

But since your question is related and might be simple to solve, let me see if this helps:
You can add the following code to all of the lines as needed:&& $m>10
That means "and it is 10 minutes after the hour". Adjust as needed.

Does that solve the problem? If you need more help and we need to have a longer conversation, I do recommend a new thread.

For a range like that you'll need to use some parentheses. There are a few ways to do that. One would be to convert the time to something like 0720 0900 and then just check if the number is between those points ($n>720&&$n<900). But you can do it the long way like this:
if ($d==6 && ($h==8|| ($h==7 && $m>20) ) )

Note that I'm doing this as exclusive-- the endpoints won't count. So it's from 7:21 to 8:59 inclusive. As needed, you can adjust the rest.

So you can use parentheses as needed. And ==, <, >, <=, <= for comparison. Then && for 'and' and || for 'or'. That should be everything you need.

As for the other method, the easiest way is probably to multiply like this:
$n = $d*10000 + $h*100 + $m;

That'll give you a number that is in the right sequence, although the actual way that the numbers add up won't make much sense (just like on a clock, it'll skip from 959 to 1000 etc.).