In fact, there is no desire today. -mysqli, Desire. -mysqli
Hi
Noon Shuangshuang Swim for a while, but the afternoon to a punch Superman read, unexpectedly sprout not out of the desire to learn ... Force yourself to update something, read a book.
1,
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 ($
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,
1. DQL operation of MySQL using mysqli extension library in PHP
Copy CodeThe code is as follows:
Header ("Content-type:text/html;charset=utf-8");
mysqli working with MySQL database (object oriented approach)
1. Create a Mysqli object
$mysqli =new
1. Use mysqli extension library in PHP to perform dql operations on MySQL
PHP Header ("Content-Type: text/html; charset = UTF-8" ); // Mysqli operations on the MySQL database (Object-Oriented) // 1. Create a mysqli object $ Mysqli = New
1, in PHP using the mysqli extension library to the MySQL DQL operation
Copy Code code as follows:
Header ("Content-type:text/html;charset=utf-8");
MYSQLI operating the MySQL database (object-oriented mode)
1. Create Mysqli objects
1, in PHP using the mysqli extension library to the MySQL DQL operation
The code is as follows
Copy Code
Header ("Content-type:text/html;charset=utf-8");MYSQLI operating the MySQL database (object-oriented mode) 1.
Use of MySQLi function library in PHP and character encoding configuration of Forms 1. what is mysqli?
The PHP-MySQL function library is the most primitive extension library for PHP to operate MySQL databases. The I of PHP-MySQLi represents
PHP Mysqli common code set and phpmysqli code set
Beginning with PHP5.0, you can not only use the early mysql database extension functions, but also use the new extended mysqli technology to exchange information with the mysql database. The mysqli
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.