![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||||||||||
LXXXIII. Improved MySQL ExtensionIntroductionThe mysqli extension allows you to access the functionality provided by MySQL 4.1 and above. More information about the MySQL Database server can be found at http://www.mysql.com/ Documentation for MySQL can be found at http://dev.mysql.com/doc/. Parts of this documentation included from MySQL manual with permissions of MySQL AB. RequirementsIn order to have these functions available, you must compile PHP with support for the mysqli extension.
InstallationTo install the mysqli extension for PHP, use the --with-mysqli=mysql_config_path/mysql_config configuration option where mysql_config_path represents the location of the mysql_config program that comes with MySQL versions greater than 4.1. If you would like to install the mysql extension along with the mysqli extension you have to use the same client library to avoid any conflicts. Runtime ConfigurationThe behaviour of these functions is affected by settings in php.ini.
Table 1. MySQLi Configuration Options
For further details and definitions of the above PHP_INI_* constants, see the chapter on configuration changes. Here's a short explanation of the configuration directives.
Predefined ClassesmysqliRepresents a connection between PHP and a MySQL database. Constructor
Methods
Properties
mysqli_stmtRepresents a prepared statement. Methods
Properties
mysqli_resultRepresents the result set obtained from a query against the database. Methods
Properties
Predefined ConstantsTable 2. MySQLi Constants
ExamplesAll Examples in the MySQLI documentation use the world database from MySQL AB. The world database can be found at http://dev.mysql.com/get/Downloads/Manual/world.sql.gz/from/pick
Copyright © 1997 - 2007 by the PHP Documentation Group. This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later. A copy of the Open Publication License is distributed with this manual, the latest version is presently available at http://www.opencontent.org/openpub/. Please see full copyright text at http://www.php.net/manual/en/copyright.php Original version of the above documentation is available at http://www.php.net/manual/en/ |
|