Posts

Showing posts from September 8, 2018

CRUD(Insert, Delete, Update, Display/Retrieve) Using PHP

//Make another php file for connection purpose(seprate one) <?php $connect= mysqli_connect("localhost", "root", "", "login"); if($connect) {          echo "database connected successfully";      } else {     die("error in connection".  mysqli_error($connect)); } ?> //make a main file that includes a Form parameters, insert ,delete ,update and selection logic. <?php //this file is a separate file for connection that must be includes in main file using include() function.// include('db.php'); ?> <html>               <head>         <title>login example</title>     </head>          <body>         <form method="POST" >             <p>id:</p>             <input type="text" name="id" placeholder="enter your id">             <p&g

How to Configure XAMPP server on the Windows System

Image
Step-1 First of all, download XAMPP server from the  https://www.apachefriends.org/download.html This is an official website for XAMPP server downloads. Then choose, your download accordings to your system and disk specifications. Step-2 After download from  https://www.apachefriends.org/download.html ,try to install to it on your windows machine. After that,choose next next consecutively till the finish button is not found. Then clicks on the finish. That will take some while of time to starting it. Step-3 After successful installation, search from the windows menu,and type XAMPP. After that, a one pop-up like menu controller will shows on the screen. Then , starts the first 2 services like as following images: Step-4 Open the directory where XAMPP is installed, find the " htdocs " named folder from it. Click on it, then you will found several files likes- index.php, and so,on... You can see that configurations from the following images: