I am today going to provide Ajax sorting in PHP. I will use a “users” MySQL table for my tutorial. I will divide my tutorial in few steps so that I can let you understand Sorting using AJAX easily. My very first step is to create a table in MySQL, you can copy this query and execute this in SQL [...]
Export mysql as csv is mostly needed when you need to import data to some other database, wherever you wanted to use. I am giving my today’s release in that case, this is complete tested code to export MySQL as csv, whatever you need is to change the query section of this code. I hope it would full fill all [...]
I am happy to write about PHPMailer class, let’s learn that how to send and email using PHPMailer. In this tutorial we will talk about how to use HTML Templates as an email, attatch files with your email using PHPMailer. Here we will use the following files to as sample for newbies. index.php send_email.php contents.html images/logo1.png images/engr_mudasir.jpg Our index file [...]
In this tutorial we will create 4 PHP Scripts files and one Database. signup.html sgnup_action.php confirmation.php config.php Note that this is not necessary, you can change the scenario. This all is just to provide you a simple concept that how you can verify an email using php. First of all create a database with name “users”. Next step to proceed [...]
I have to develop a code for a simple quiz in PHP page. I figured it out and found it to be very simple and easy to do. All the steps you need to do is to create a simple form and after that a PHP Script that will calculate the answers of the specific question. I have followed some [...]
Splitting a string is needed whenever you wish to take a specific part of the string after a specific character. Suppose I have string (“Hello: Hunny I just make you call, cell was out or range”), I want to pick this specific part of the string after the sign(:). Better way is to use explode here to save time and [...]
You can find and replace a string in php easily using str_replace() function. I will go with example to make it easy for you. For example I have some string and I want to replace all the vowels from that string, it would be easy to use str_replace() here. I have number of contents and I want to replace all [...]
Read text file using PHP is an easy and simple method. I am going to post this for the beginners of PHP. Suppose you have text file and you may wanted to read that file and display all the information on you webpage somewhere. I am using two php functions. fopen() and fgets(). Let’s have a look at the Script, [...]
All you need to know to send a mail using PHP Script is mail function. But I am considering you as a newbie here, a flow chart is plotted to show you the basic functionality of my script. This is very simple script. but you can make it more secure using sql injection. According to flow chart, create two major [...]
Registration Form PHP Script This tutorial (Registration Form PHP Script) will let you know “How to create Registration Form Using PHP”. This is Step by step tutorial to create a registration form/Sign Up Form. I have created three major files named as: registration_form.php registration_script.php success_register.php But before, Sitting in a corner and start development, its important to idealize what you [...]




