Open Access Open Access  Restricted Access Subscription Access

PHP Framework for Database Management Based on MVC Pattern


Affiliations
1 Department of Mathematics Statistics and Computer, Ubon Ratchathani University, Thailand
 

PHP is a powerful language to develop dynamic and interactive web applications. One of the defining features of PHP is the ease for developers to connect and manipulate a database. PHP prepares the functions for database manipulation. However, database management is done by the Structure Query Language (SQL). Most novice programmers often have trouble with SQL syntax. In this paper, we present the PHP framework for database management based on the MVC pattern. The MVC pattern is very useful for the architecture of web applications, separating the model, view and controller of a web application. The PHP framework encapsulated, common database operations are INSERT, UPDATE, DELETE and SELECT. Developers will not be required to consider the specific SQL statement syntax, just to call it the method in the model module. In addition, we use White-Box testing for the code verification in the model module. Lastly, a web application example is shown to illustrate the process of the PHP framework.

Keywords

SQL, Framework, MVC, White-Box Testing.
User
Notifications
Font Size

Abstract Views: 831

PDF Views: 457




  • PHP Framework for Database Management Based on MVC Pattern

Abstract Views: 831  |  PDF Views: 457

Authors

Chanchai Supaartagorn
Department of Mathematics Statistics and Computer, Ubon Ratchathani University, Thailand

Abstract


PHP is a powerful language to develop dynamic and interactive web applications. One of the defining features of PHP is the ease for developers to connect and manipulate a database. PHP prepares the functions for database manipulation. However, database management is done by the Structure Query Language (SQL). Most novice programmers often have trouble with SQL syntax. In this paper, we present the PHP framework for database management based on the MVC pattern. The MVC pattern is very useful for the architecture of web applications, separating the model, view and controller of a web application. The PHP framework encapsulated, common database operations are INSERT, UPDATE, DELETE and SELECT. Developers will not be required to consider the specific SQL statement syntax, just to call it the method in the model module. In addition, we use White-Box testing for the code verification in the model module. Lastly, a web application example is shown to illustrate the process of the PHP framework.

Keywords


SQL, Framework, MVC, White-Box Testing.