Five PHP database problems that programmers are most likely to commit and their explanations. Expose five common database problems in PHP applications-including database pattern design, database access and use of database business logic code-and their solutions
PHPFive common problems in applications
DatabaseProblems-including database pattern design, database access and use of database business logic code-and their solutions.
If there is only one way to use the database, it is correct ......
You can create database design, database access, and database-based PHP business logic code in many ways, but it generally ends with an error. This article describes the five common problems in the PHP code for database design and database access, and how to fix these problems.
Question 1: use MySQL directly
A common problem is that older PHP code directly uses the mysql _ function to access the database. Listing 1 shows how to directly access the database.
Five common database problems in the PHP app -- including database pattern design, database access and database use business logic code -- and their solutions...