Define ("Mysql_open_logs", true);
Class Mysqlihelp
{
Private $db;
Public Function __construct ()
{
What to do if you want to query log logs
}
Public Function __get ($name)
{
echo "__get:", $name;
if (In_array ($name, Array ("DB"), true)//Isset ($
MYSQLI provides an object-oriented and process-oriented approach to interacting with the database, looking at both of these ways.
1. Object Oriented
In the object-oriented approach, MYSQLI is encapsulated into a class that is constructed as
Learn php-(17) PHP using MYSQLI Extension Library Operations database 2
From the day before yesterday, my computer did not know how, write the program when no reason to crash. is not completely dead, the mouse is also active, that is, the click
First, mysqli connections are permanent connections, while mysql does not. What does it mean? Mysql will re-open a new process whenever it is used for the second time, while mysqli only uses the same process, which can greatly reduce the pressure on
First, the MYSQLI connection is a permanent connection, and MySQL is a non-permanent connection. What do you mean? The MySQL connection will reopen a new process whenever it is used for the second time, while Mysqli will only use the same process,
PHPmysql and mysqli transaction instructions are shared. Mysqli encapsulates some advanced operations, such as transactions, and many available methods in the database operation process. A lot of applications are mysqli transactions. For example,
First, mysqli connections are permanent connections, while mysql does not. What does it mean? Mysql will re-open a new process whenever it is used for the second time, while mysql uses only the same process,
First, mysqli connections are permanent
First, mysqli connections are permanent connections, while mysql does not. What does it mean? Mysql will re-open a new process whenever it is used for the second time, while mysql uses only the same process, in this way, the pressure on the server
First, mysqli connections are permanent connections, while mysql does not. What does it mean? Mysql will re-open a new process whenever it is used for the second time, while mysql uses only the same process, in this way, the pressure on the server
Mysqli encapsulates some advanced operations, such as transactions, while encapsulating many of the methods available during DB operations.
The most widely used place is the mysqli business.
Like the following example:
Copy Code code as
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.