How to Create Database Using Mysql,Mysqli,PDO or using Oops concepts in php?
Database Using Mysql,Mysqli,PDO or using Oops concepts in php? mysqli could be a additional for the mysql functions, with object-oriented and procedural sorts. it's support for prepared statements. PHP data Objects(PDO) could be a general database construct layer with support for MySQL between several other databases. 1. The mysql functions are practical and use manual escaping. 2. MySQLi is a additional for the mysql functions, with object-oriented and procedural versions. It has support for prepared statements. 3. PDO (PHP Data Objects) is a general database abstraction layer with support for MySQL among many other databases. Database Connection Using Mysql: <?php $con=mysql_connect("localhost","root","password"); if(!$con) { //die('could not connect:' mysql_error(); } $db=mysql_select_db("dbname",$con); if(!$db) { die("Error in Database Connection"); } ?> Database...