In this tutorial we will be learning, how to establish connection to MySQL Database using object oriented style of 'MySQLi' extension of PHP. MySQL and PHP are two side of same coin both are immensely integrated with each other.
MySQLi Extension offers two styles of writing codes which are
1. Procedural
2. Object Oriented
In this tutorial we will be using single function i.e 'mysqli::construct()' which establish a connection to MySQL server and on success returns object and then we will check the connection using a class variable name 'connect_error'.
Here are using XAMPP servers with PHP 5.6.
======= Don't forget to JOIN OUR FACEBOOK GROUP ========
/ 636785759810596
-------------------------------- Videos ----------------------
MySQL Connect Procedural : • Connecting To MySQL DB Procedural Sty...
Url Image : • URL Image Resizing In PHP - TheMindSp...
File Upload : • File Upload In PHP - TheMindSpeaks
------------------------------- Social ------------------------
Facebook : facebook.com/themindspeaks
Google+ : plus.google.com/+themindspeakss
Twitter : twitter.com/meheartlife
Make sure you follow me for more awesome tutorials and I'll be coming out with a new channel soon!!!