Contact MySQL  | 
Login  |  Register
The world's most popular open source database
  • MySQL.com
  • Downloads
  • Documentation
  • Developer Zone
Developer Zone Downloads MySQL.com
Documentation
  • MySQL Server
  • MySQL Enterprise
  • Workbench
  • InnoDB Cluster
  • MySQL NDB Cluster
  • Connectors
  • More
  • MySQL.com
  • Downloads
  • Developer Zone
Section Menu:  
Documentation Home
MySQL PHP API
  • Preface and Legal Notices
  • Introduction to the MySQL PHP API
  • Overview of the MySQL PHP drivers
  • MySQL Improved Extension
  • MySQL Functions (PDO_MYSQL)
  • Mysql_xdevapi
  • Original MySQL API
    • Installing/Configuring
      • Requirements
      • Installation
        • Installation on Linux Systems
        • Installation on Windows Systems
        • MySQL Installation Notes
      • Runtime Configuration
      • Resource Types
    • Changelog
    • Predefined Constants
    • Examples
      • MySQL extension overview example
    • MySQL Functions
      • mysql_affected_rows
      • mysql_client_encoding
      • mysql_close
      • mysql_connect
      • mysql_create_db
      • mysql_data_seek
      • mysql_db_name
      • mysql_db_query
      • mysql_drop_db
      • mysql_errno
      • mysql_error
      • mysql_escape_string
      • mysql_fetch_array
      • mysql_fetch_assoc
      • mysql_fetch_field
      • mysql_fetch_lengths
      • mysql_fetch_object
      • mysql_fetch_row
      • mysql_field_flags
      • mysql_field_len
      • mysql_field_name
      • mysql_field_seek
      • mysql_field_table
      • mysql_field_type
      • mysql_free_result
      • mysql_get_client_info
      • mysql_get_host_info
      • mysql_get_proto_info
      • mysql_get_server_info
      • mysql_info
      • mysql_insert_id
      • mysql_list_dbs
      • mysql_list_fields
      • mysql_list_processes
      • mysql_list_tables
      • mysql_num_fields
      • mysql_num_rows
      • mysql_pconnect
      • mysql_ping
      • mysql_query
      • mysql_real_escape_string
      • mysql_result
      • mysql_select_db
      • mysql_set_charset
      • mysql_stat
      • mysql_tablename
      • mysql_thread_id
      • mysql_unbuffered_query
  • MySQL Native Driver
  • Common Problems with MySQL and PHP
Download this Manual
PDF (US Ltr) - 2.4Mb
PDF (A4) - 2.4Mb
HTML Download (TGZ) - 251.4Kb
HTML Download (Zip) - 258.8Kb


MySQL PHP API  /  Original MySQL API  /  Examples

6.4 Examples

6.4.1 MySQL extension overview example

Copyright 1997-2021 the PHP Documentation Group.


PREV   HOME   UP   NEXT
Download this Manual
PDF (US Ltr) - 2.4Mb
PDF (A4) - 2.4Mb
HTML Download (TGZ) - 251.4Kb
HTML Download (Zip) - 258.8Kb
Contact MySQL Sales
USA/Canada: +1-866-221-0634   (More Countries »)
  © 2021, Oracle Corporation and/or its affiliates

  • Products
  • MySQL Database Service
  • MySQL Enterprise Edition
  • MySQL Standard Edition
  • MySQL Classic Edition
  • MySQL Cluster CGE
  • MySQL Embedded (OEM/ISV)
  • Services
  • Training
  • Certification
  • Consulting
  • Support
  • Downloads
  • MySQL Community Server
  • MySQL NDB Cluster
  • MySQL Shell
  • MySQL Router
  • MySQL Workbench
  • Documentation
  • MySQL Reference Manual
  • MySQL Workbench
  • MySQL NDB Cluster
  • MySQL Connectors
  • Topic Guides
  • About MySQL
  • Contact Us
  • How to Buy
  • Partners
  • Job Opportunities
  • Site Map
  © 2021, Oracle Corporation and/or its affiliates
Legal Policies | Your Privacy Rights | Terms of Use | Trademark Policy | Contributor Agreement |