CRUD PHP with PDO and MySQLi

CRUD PHP with PDO We are going to show the procedure of PHP CRUD system with PDO. In this tutorial we will complete it. So be patient and keep reading. Why will you learn PDO ? We can make this crud application with PHP & MySQLi easily . But here we will use PDO.  ADVANTAGES OF PDO Object Oriented . Bind parameters in statements (security) . Allows for prepared statements and rollback functionality (consistency) .Throws catchable exceptions for better error handling (quality) .One API for a multitude of RDBMS brands . PDO offers... Read more


Today we are going to show the procedure of PHP CRUD system with MySQLi. In this tutorial we will complete it. First before starting our tutorial we will know why will you use mysqli ?The mysqli extension, or as it is sometimes known, the MySQL improved extension, was developed to take advantage of new features found in MySQL systems versions 4.1.3 and newer. The mysqli extension is included with PHP versions 5 and later The mysqli extension has a number of benefits, the key enhancements over the mysql extension being: Support for Prepared Statements . Support for Multiple Statements . Supp... Read more

How to Use Access Modifier in PHP

When we follow object oriented php in our project , we should follow some rules to use access modifiers in php. Today we are going to learn clearly what is access modifier and how can we use it.PHP access modifiers are used to set access rights with PHP classes and their members that are the functions and variables defined within the class scope. In php there are three scopes for class members. public private protected Now, let us have a look at the following image to understand access modifier access level Now, let us have a look at the following list to know about the p... Read more

What are traits in PHP ?

Traits are a mechanism for code reuse in single inheritance languages such as PHP. A Trait is intended to reduce some limitations of single inheritance by enabling a developer to reuse sets of methods freely in several independent classes living in different class hierarchies. Traits have been available in PHP since 5.4. A trait is a PHP file that uses the trait keyword instead of class.One of the benefits of traits over classes and inheritance is the ability to use multiple traits inside one class. This is sometimes compared to multiple inheritance which is a feature PHP does not support.... Read more

What is interface in PHP ?

Interfaces are defined in the same way as a class, but with the interface keyword replacing the class keyword and without any of the methods having their contents defined. All methods declared in an interface must be public. this is the nature of an interface . Note that it is possible to declare a constructor in an interface, what can be useful in some contexts . How to declare Interface interface School { public function mySchool(); } Have a look , here we have declared an interface. Look , in interface we can just use only public access specifier and can not write any... Read more

LET'S SOCIALITE - passive income

Recent Tweets