What is crud Operation in php? Or Write a program where php program connect MySQLi database? Today we know about crud Operation and how to connect MySQLi database with php program. CRUD OPERATION Crud Operation stands for create, read (select), update and delete. First of all we create a MySQLi database in phpmyadmin. so we have 'mydb' database and table name 'student'.now create a connection of database php file connection.php and write this code given below:- Example : 'connection.php', <?php $hostname = "localhost" ; $username = "root" ; $password = "" ; $dbname = "mydb" ; $con = mysqli_connect ( $hostname , $username , $password , $dbname ); if ( $con ){ echo "connected" ; } else { echo "not connected" ; } ? > <?php create database with php: create database with php command ,code given below:- Example: $sql = ' CREATE Database mydb ' ; now we insert...
Learn coding with My Blog 'akaraklearncoding.blogspot.com' | here you learn java programming language, php language , html, css and javascript languages