• Home
  • Search Tags
  • About

mysqli

Topics related to mysqli:

Getting started with mysqli

MySQLi is a PHP Extension which enables PHP to communicate with MySQL Databases. MySQLi comes built in with PHP. MySQLi was introduced with PHP 5.0.

MySQLi is available in procedural & Object Oriented style. MySQLi supports CRUD queries, prepared statements,Multiple statements,Transaction and SQL operations.

Before MySQLi, MySQL (Note: Its not MySQLi ) is the Default extension of PHP for connecting MySQL database. Due to several vulnerabilities in MySQL extention,MySQLi was introduced.

Connecting to the database

As I showed in the example, I saved the connection to a variable to make it cleaner in code. Otherwise, when you want to query the database, you need to connect EACH time!

It makes the code a lot cleaner!

Reading data

Content on the page is taken from Stack Overflow Documentation

This site is NOT affiliated with Stack Overflow or any of the contributors. | Privacy Policy | Terms of Service