PHP code messes up layout?
So I'm working on a site
On one page the user should be able to select some given keyword from a list, press a button and then get a table which contains the content from a MySQL database table (only the rows that contain the selected keyword).
As I don't have much experience with PHP I just started with displaying the whole database without any user interaction - It just shows the table on load.
So I read that it isn't smart to put the <?php ?> in between of html code and that you should instead echo the whole html in PHP... But I still tried to do it the first way. So I have some PHP code wrapped in a div and I expected it to put the MySQL database in there...
Well, it does display the data table, but messes up the whole layout that comes after the table...
For you to experience what I'm complaining about, please see here for the normal layout and here for the broken layout.
So first I'd like to find out what happens to my layout and how to fix this
I guess that this whole thing needs to be done differently.
If you have the time, can someone also please explain how to properly execute the code that connects to MySQL and outputs the data after a user has chosen what to display (and has pressed a button) and how to display the result in the right place on the site... I mean, I can just put the PHP before or after the whole html but then it will be there, all ugly, on a white background
So, I'll put it like this: How do I execute the PHP code AFTER the user fills out the form and display the database content on that same page and?
I would totally understand if you can't understand what I'm trying to do here... I am really not good at describing my issues
If you folks don't get what the hell this Russian guy is trying to say, I'll try to re-explain it
Thanks for your help!!!






Cartoon Clouds
Mountains
Sunrise
Clouds
Green Clouds
None




a hoopy frood who really knows where his towel is. ~~~ 










Help