2. Webpage Structure
[ Prev ] [ Index ] [ Next ]
The main webpage is at index.php. It is divided into various divs, which are explained in the picture below:
The top half of the "subcontent" div is the "search" div, and the bottom half os the "channelsection" div. The content of these sections is generated by PHP. In particular, a PHP script queries the channel database to populate the dropdown list in the "search" div. When the form in the "search" div is submitted, another query is sent to the database to look up the information related to the selected channel, and the content in the "channelsection" div is generated from the result of the query.