This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Friday, 7 June 2013

how to upload many images at once in php

This tutorial tell you how to upload many images at once  in php.  Just copy the code bellow and save it as "image.php" then open it in your server e.g. localhost. <?php if($_SERVER["REQUEST_METHOD"] == "POST")  {  $uploaded_images = count($_FILES['file']['name']);  for ($i = 0; $i < $uploaded_images; $i++)  {  if($_FILES["file"]["error"][$i]...

how to upload and resize image for thumbnail in php

            This tutorial tell you how to upload and resize image for thumbnail in php. Just copy the code bellow and save it as "resize_image.php" then open it in your server e.g. localhost. <?php if($_SERVER["REQUEST_METHOD"] == "POST")  {  // By using the global PHP $_FILES...

Tuesday, 4 June 2013

how to store data into database easily and reset the form after successful submission

            Code below will guide you how to store data into database easily. Save this as "save.php" and open it in your host e.g. localhost. <?php  session_start();  // Assing value about your server to these variables for database connection  $hostname_connect= "localhost";  $database_connect=...

Friday, 31 May 2013

how to create your own captcha image easily

This tutorial tell you how to create your own captcha image. You should follow these steps: Copy the code below and save it as "create_image.php" <?php //Start the session so we can store what the security code actually is session_start(); //Send a generated image to the browser Create_Captcha_Images(); exit(); function Create_Captcha_Images()...

Wednesday, 29 May 2013

How to change states list depending on selected country

This tutorial tell you how to How to change states list depending on selected country. You should follow these steps: Create your database connection.e.g. <?php $con=mysql_connect ("localhost","username","password"); @mysql_select_db('your_bd') or die(mysql_error()); // Check connection if (!$con) { echo "Failed to connect to MySQL: "; } ?> Create...

How to display images stored in database

            This code is for showing your images from database. (Don't forget to connect with dababase). You can see storage of images in database here. <?php  $query_image = "SELECT * FROM acc_images";  // This query will show you all images if you want to see only one image...

Saturday, 18 May 2013

Form validation on keyup using jquery (very easy)

            It is need of some clients that user cannot enter any special character(# @ $ % ^ & *) in text field. E.g. in the place of first name, last name etc. So it is very easy to do so just copy and past the code below and see the fun. Don't forget to include jquery file. You can download...

Monday, 17 September 2012

csv export and import script using php

Code bellow will be helpfull for you for importing and exporting csv files. Copy the code bellow and save it as "import_export_csv.php" then open it in your host e.g. 'localhost' and start importing, exporting csv files. <?php //don't forget to include your database connectivity.  include('db_connection.php');  if ($REQUEST_METHOD=="POST"...

using google map lookup address by postal code

           <?php     // First, we need to take their postcode and get the lat/lng pair:     $postcode = 'SL1 2PH';     // Sanitize their postcode:     $search_code = urlencode($postcode);     $url = 'http://maps.googleapis.com/maps/api/geocode/json?address='...

Monday, 14 May 2012

How to write a php script for file downloading

In this tutorials you will learn how to write a php script for file downloading.If you want to see how to upload a file into a server click here. <?php  // Give the path here where your file is located and make a hyper link like <a href='www.yoursite.com?fname=youpic.jpg'>Download image</a>//$_GET['fname']; will...