How to implement MVC pattern in PHP having a MYSQL database?
Told I never used object-oriented programmation in Php , my doubt is very simple:

I have an application whose "**presentation layer**" is a web site written in php.

I also have a **business layer** implemented in Java (which communicates with presentation layer using a **Soap client-server**

Finally I have two database: one (HSQLDB) accessed from the business layer through HIBERNATE library.
The other (MYSQL) should be accessed from the presentation layer NOT DIRECTLY , but through a data access layer which stay under the **data access layer**. How should I do this?

(Usually I interact with php using php functions such as mysql_connect , mysql_query)

The following image shows the architecture:
![enter image description here][1]

Thank you in advance.

  [1]: http://i.stack.imgur.com/tOwVI.png
How to implement MVC pattern in PHP having a MYSQL database?
===

Told I never used object-oriented programmation in Php , my doubt is very simple:

I have an application whose "**presentation layer**" is a web site written in php.

I also have a **business layer** implemented in Java (which communicates with presentation layer using a **Soap client-server**

Finally I have two database: one (HSQLDB) accessed from the business layer through HIBERNATE library.
The other (MYSQL) should be accessed from the presentation layer NOT DIRECTLY , but through a data access layer which stay under the **data access layer**. How should I do this?

(Usually I interact with php using php functions such as mysql_connect , mysql_query)

The following image shows the architecture:
![enter image description here][1]

Thank you in advance.

  [1]: http://i.stack.imgur.com/tOwVI.png