Category: PHP MySQL

Connection Close in Php mysql

When the script ends then automatically connection will be closed. To close the connection before, use the following: MySQLi Object-Oriented: $conn->close(); MySQLi Procedural: mysqli_close($conn); PDO: $conn =...
READ MORE   >>

PHP connect to DB

Example (MySQLi procedural) mysqli_connect function is used for connection string which has 3 parameters and mysqli_connect_error function is used to display particular MySQL error. <?php$servername = "localhost";$username =...
READ MORE   >>

PHP connect to DB

PHP work with a MySQL database using MySQLi (procedural), MySQLi (object-oriented) and PDO (PHP Data Objects) Difference between MySQLi and PDO PDO will work on 12 different database systems, whereas MySQLi will only work with MySQL...
READ MORE   >>

PHP Interface

Interfaces allow us to specify what methods/functions of a class should implement. It’s quite easy to use a variety of different classes in the same way. When one or more classes use the same interface, it is referred to as...
READ MORE   >>

Recent Comments

    • Copyright © 2020 (Er. Shairy Kalra). All Rights Reserved