I have created a mysql database containing information about movies and at which hour they play in the movie theater. Now, I'm pretty new to this and was wondering what is the best way to make a html table with the content from the database, something like:
<table>
<thead>
<tr><th colspan="5">Programma</th></tr>
</thead>
<tbody>
<tr>
<td style="opacity:1">MovieName</td>
<td>14u00</td>
<td>17u00</td>
<td>20u00</td>
<td>22u30</td>
</tr>
<tr>
<td style="opacity:1">MovieName</td>
<td>14u00</td>
<td>17u00</td>
<td>20u00</td>
<td>22u30</td>
</tr>
</tbody>
</table>
I want the cells containing the hours to only be visible if that hour is in the database. I know how to make a connection with the database but I'm not sure where to implement the php code and how to make the cells only visible when they are mentioned in the database for that movie. Thanks in advance.