Php manipulated mysqli database and mysqli Database
Mysql (I) support has been added since php5.0. Newly Added functions are added as objects.
I indicates that there are many functions, high efficiency, and stability to be improved.
Compile-time
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 ($
Add MySQL (i) support from php5.0, and new features are added in the form of objects
I express the meaning of the improvement of more functions, high efficiency, stability
Compile-time parameters:
Added MySQL (i) support starting from php5.0, adding new functions as objectsI means improved meaning function, high efficiency, stableCompile-time parameters:./configure--with-mysql=/usr/bin/mysql_config \ #使用 mysql clientlibrary (libmysql)
Added MySQL (i) support starting from php5.0, adding new functions as objectsI means improved meaning function, high efficiency, stableCompile-time parameters:./configure--with-mysql=/usr/bin/mysql_config \ #使用 mysql clientlibrary (libmysql)
Objective
In the actual development, PHP will be used with the database, because in the background need to have too much data to save, and the database is a good place to save data, we use PHP development database is a relational database MySQL,
This article describes how to use Mysqli to operate a database in the PHP getting started tutorial. it involves the basic connection, encoding settings, query, modification, transaction rollback, and other operation skills of php + mysqli to operate
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
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,
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.