Putting it all together

Hello everybody :slight_smile:

for the past 3/4 months i have been learning nonstop in various subjects ranging from html css javascript ( also jquery framwork ) and php i have also been able to put up a static website ( using only htm and css )

after learning more about database/php/javascript having hard time to understand how its all put together now

if php let me generate the header/footer for every page instead of hard codding it … where will the java script goes then ?

what im trying to do now is build a website where there is accidents reported from my local company and people would be able to comment on each article/accident

does that mean every article is saved in database ? and every comment is save in database ?

Thank you for your time :thumbsup:

To put it in simplistic terms:
PHP let’s you interact with the SERVER.
As a consequence, PHP let’s you interact with the DATABASE.

For your concern, let’s just simply say that:
Javascript (and not java script), as “NOTHING” to do with PHP.
Javascript allows you to interact with the CLIENT (for example, a Browser).

Normally, yes.

Regards.