Posts in PHP


Insert Data into Database using PHP MySQLi

Posted on 10th Feb 2018 12:42:13 in

In this tutorial we will see how to Insert Data into Database using PHP MySQLi. First we create a database then table after that we start to insert data into database table using php mysqli.Mysqli is extended version of MySQL. We will use mysqli to access mysql database.

[Read more...]

Simple Calculator in PHP

Posted on 7th Feb 2018 22:32:17 in

In this tutorial we will see how to create a simple calculator in PHP. Our calculator will do all basic arithmetic operations like addition,subtraction, division and multiplication. In this process I have used two input box to enter operands for mathematical operations and used one select box to choose operators.  Calculate button is used to perform action on given operands according to selected operators. I have displayed results in an input box which have readonly attribute so that user can only see the output of calculation but will not be able to change its value. I have created a class file having methods to perform different arithmetic operations.

[Read more...]

How To Get Client IP Address In PHP

Posted on 7th Feb 2018 22:31:00 in

When we develop a web application, then sometimes we need to store the IP address of the client to maintain security and validations. Getting the visitors IP also helps to track his activity on the website. It is very easy to get the client IP address in PHP. We use $_SERVER array to get the user IP address.
REMOTE_ADDR easily gives you client IP address.

[Read more...]

PHP Form Validation

Posted on 7th Feb 2018 22:00:37 in

In this article we are going to see how to validate a HTML form using PHP. We have already written about how to validate form using jQuery. Server side form validation is used for additional security with client side validation. In this tutorial we will see how to use the HTML contact form on the website and validate user input before submitting form using PHP.  The contact form have a number of input fields like name,email ,gender, website and comment.

[Read more...]

10 Basic PHP String Functions

Posted on 7th Feb 2018 21:56:56 in

In this tutorial, we are going to see 10 basic and important string functions in PHP. String is basically a sequence of character. In this tutorial, we will see basic important PHP string functions which are commonly used in PHP. These inbuilt function in PHP are used to perform different operations while using string. Knowledge of PHP string functions will make programming simpler for you while you have to use string and perform different operations.

[Read more...]

PHP - Convert Array to Object & Object to Array

Posted on 7th Feb 2018 21:54:27 in

Hi guys in this tutorial we will learn how to type cast or convert an array into object and object into array. It is simple to type cast a value in php. You will see how it is easy to change type in php for variable value. Let us see example to get understand in better way.

[Read more...]

Stay Connected
Like Us on Facebook