Posts in PHP
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.
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.
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.
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.
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.