I am really new to PHP. I'm still not exactly sure how PHP generates an html file. I am creating a forum for my website and there are 2 things I would like to know.
1. How do I edit the content (the HTML stuff) from withing the PHP file, such as the words that appear (ex: Welcome back, "username")
2. I have been trying to add a script in a certain spot of the html within the PHP, but I can only add the script at the beginning, which screws up the page entirely, or at the very end, which won't work because it's after the </body> tag
Please answer thoroughly.
1. How do I edit the content (the HTML stuff) from withing the PHP file, such as the words that appear (ex: Welcome back, "username")
2. I have been trying to add a script in a certain spot of the html within the PHP, but I can only add the script at the beginning, which screws up the page entirely, or at the very end, which won't work because it's after the </body> tag
Please answer thoroughly.