I’m pretty new to PHP and I was reading already a lot.
I really like it, but actually im a bit stuck.
I think I just need a little (or big) push in the right direction.
I would like, that regarding to my SQL Database, I get output in a table on a PHP Page.
The table is supposed to get filled by two conditions.
If both are true there should be an “X” in the table cell, if not then there should be anyway a cell, but empty.
I was able to manage it with it with giving each cell a unique variable, that would be filled if the conditions for a cell would be true.
That was a lot of code and more feeling, like I would try to make a bad copy of Excel.
Actually I’m trying to figure out some better way.
I was already able to create a table with two separate “for” loops, but then im just able to check for one condition. If I try to put the loops together I get trouble with structure of my table.
So im stuck right here. The code down here is not working, because $startdate is changed already in the first loop.
Is this even the right way? I feel like I’m just waisting my time.
Thanks in advance for any help & critic.