I can’t attest to the correctness of your loop or conditional, but if they both run, you do have a space at the start of that div. Though there’s no reason to separately concatenate said space instead of just putting it on the end of the literal string right before it.
That said, your code’s very strange. You create this loop but don’t use $key, $value or $events anywhere in it. If you just want to loop as many times as the size of $events[$i], then create a for loop with count($events[$i]) as the limit.
thanks Dan. yea, I’m learning am will look at my poor code after I resolve this space thing. it runs, but the space is not there. any idea why? will try line before you suggested. thank you!
If you see that div, then the space is there. View the source HTML of your webpage. Maybe it’s just not easy to see, visually, given the layout of your site.
Not to call you a liar, but well, I’m calling you a liar – I don’t believe you. Don’t take that personally. I feel it’s more likely a human is mistaken than that an echo statement is deciding to alter its arguments and deleting the space.
“I don’t see it” doesn’t mean “it’s not there”, especially since you did not give context to the “I don’t see it” part – see it when viewing the webpage, or viewing the HTML?
well they don’t seem to be present when viewing the site. I need to look for something else I changed outside of these echos. the solution must be there. thank you for your help Dan.