What is a nice php+html web programming style?
I've seen 3 ways of programming in PHP. Object Oriented looks very nice, and I use certain libraries like jpgraph (and an excel exporter). I also have some functions, giving it a procedural look (for example handling the session) - also a nice method.

However, when it comes about the HTML elements, with forms and MySQL calls, I have just stupid (a bit long) PHP files with both HTML, PHP and MySQL code inside, which just works.

I guess some things can be "templated" together... but I am not sure that's needed, since the long stupid mixture works quite well.

What do you think, you experts out there, what is "the expert style" of programming a web-based tool with database connectivity? Forms, links, MySQL queries, tables with DB output and PHP code is involved (also little java scripts but not so relevant).

(The result is a large tool containing specifications set by engineering targeted to the production department with the purpose of describing and recording the quality and parameters of each little process.)
What is a nice php+html web programming style?
===

I've seen 3 ways of programming in PHP. Object Oriented looks very nice, and I use certain libraries like jpgraph (and an excel exporter). I also have some functions, giving it a procedural look (for example handling the session) - also a nice method.

However, when it comes about the HTML elements, with forms and MySQL calls, I have just stupid (a bit long) PHP files with both HTML, PHP and MySQL code inside, which just works.

I guess some things can be "templated" together... but I am not sure that's needed, since the long stupid mixture works quite well.

What do you think, you experts out there, what is "the expert style" of programming a web-based tool with database connectivity? Forms, links, MySQL queries, tables with DB output and PHP code is involved (also little java scripts but not so relevant).

(The result is a large tool containing specifications set by engineering targeted to the production department with the purpose of describing and recording the quality and parameters of each little process.)