Skip to main content

About

My name is Nilesh Patil, I am a web developer. I know HTML, CSS, JQuery and PHP. I have also worked with frameworks Codeigniter and Yii2. PHP is language in which more than 80% websites are developed. Anyone who wants to become a web developer, he should know basic of HTML,CSS ,Javascript , MySQL and PHP. Here I am sharing code which often needs while developing.

Popular posts from this blog

Web Development

                         Web development means creating websites. Websites can be accessible on Internet. Website is collection of web pages. It may contain any information, images, videos, forms. Web pages can be created by using a programming languages.  There are 3 main parts of web development 1. Client side scripting - It includes code which runs at browser side. It is user interface. What will user see and how will he interact with system is designed here. Languages includes in client side scripting : HTML CSS Javascript JQuery 2. Server side scripting - It includes code which runs at server side. User sends a request to server, server will process on it and send response to browser. Server side scripting allows the database on the web server to communicate with the web browser of the end user’s computer. Languages includes in server side scripting : PHP JAVA Python ASP.NET Ruby 3. Da...

Database handling in PHP

There are three method for handling database in PHP 1. MySQLi-  object-oriented 2. MySQLi -  procedural -oriented 3. PDO - PHP Database Objec t First create variable required $servername = "localhost"; $username = "root"; $password = "password"; $dbname = "sample_db"; Method 1 : -  MySQLi -  object-oriented Create connection : - $conn = new mysqli($servername, $username, $password, $dbname); if ($conn->connect_error) {     die("Connection failed: " . $conn->connect_error); } Fetch the records from table  : - $sql = "SELECT * FROM users"; $result = $conn->query($sql); get rows count  : - $count = $result->num_rows; iterate through records  : - while($row = $result->fetch_assoc()) { //print single row details print_r($row); } close connection  : - $conn->close(); Method 2 :-  MySQLi -  procedural -oriented Create connection $con...

REST Api

Webservice         It is communicating between different platforms, different operating systems or different devices by using World Wide Web.         e.g. mobile and web. Suppose the user has registered on Facebook or Gmail on the website. Now he wants to use a mobile app. So it is not required to register again as we have already registered. We can use the same details for login on mobile as well as the website. It can be possible by using web services. App sends a request to a server and gets a response in JSON or XML format from server. API -  application program interface There are two types of web services: 1.SOAP 2.REST SOAP - Simple Object Access Protocol It gets a response in XML format. It is platform independent and language independent. By using SOAP, you will be able to interact with other programming language applications. REST - Representational State Transfer       ...