Category Archives: PHP

Live Database Check using PHP Ajax

Most of the websites are using username as primary key, then username should not be repeated. In this article i am going to explain how to live check the username in database using ajax and php. There are two files register.php user_check.php Database username is the primary key.   Register.php [code type=html] <html> <head> <script… Read More »

PHP Session

Session in php are easily manageable and it can be handle with easy ways.  Session is a super global variable, when a session variable is created that variable’s value can be retrieved in some other page. Syntax: $_SESSION[‘session_name’] = “some value”; Value obtained from textbox is stored as session value and that session value can be used anywhere… Read More »

How to Insert Data into MySQL Database Using Radio Button in PHP

Using PHP and Mysql, we can store data obtained from radio button into mysql table. The biggest reason for using Radio button is radio button allows user to select one option only i.e., limited options. Read also:  How To: Submit Form When Radio Button is Clicked [Without Submit button] Create database  “data” and table “tb”.… Read More »

Category: PHP

implode() and explode() PHP Functions

explode() php functions are used create an array elements based on split the strings, implode() function is used to combine array elements with a separate sting. explode() – split string based on delimiter and creates array. implode() – joins the array element explode() explode() function is used to seperate a string based on delimiter and store in… Read More »

Category: PHP

Automatically Display (or) Convert a Number into Word(String) Using PHP

Here we have to discuss about the thing how to convert automatically a number as string(word) using PHP. We already discuss the things in  conversion of current webpage as MS-Word document and PDF file. Similar to this conversion we going to convert a number as word(string). It  is also used in the application projects. Most of… Read More »

Category: PHP

How To: Integrate Facebook Comment in Website

Comment system in a website is essentially needed. Especially in blogs, users feedback and doubts have to be get through this comment system. Implementing facebook comment system in our site will get more visitors. For example when a user comments ( facebook comment) on a post then all of his facebook friend will know he… Read More »

Category: PHP

Email Form Using PHP

Many websites are having contact with mail function implemented. when we send them a message, then message will automatically. But in some of the website, when we send them a message it will be added to their admin panel and no email will be sent. Here i am using mailto() php function to send mail.… Read More »

Category: PHP

Convert (or) Save current Webpage as PDF document Using PHP

Here we have to see how to convert (or) current webpage as pdf file. We already discuss the thing about conversion of webpage as MS-Word document file. Similar to this we have to convert current webpage as pdf  on current  webpage itself. Most of the  websites willing to provide their document as pdf instead MS-Word… Read More »

Category: PHP

Convert (or) Save current Webpage as MS-Word document Using PHP

Here we have to see about how to convert (or) save a current webpage as Microsoft word document format. Most of the website willing to provide their webpages in MS-Word format for their user.Most of the application sites, Government sites are made their MS-Word file from current webpage. First of all previous methods used for conversion… Read More »

Category: PHP

in_array() PHP Function

in_array() php function is used to find a variable is present in an array or not.For example: An array has values a,b,c,d and we have to find whether “b” is present in that array. There are two ways Get count from array about total number of values in it, then using for loop we have… Read More »

Category: PHP