Multiple File Upload with PHP

Multiple file upload

HTML Markup We need to add a simple html form with input type file and submit property. We also need to give file input type file name with box breaks like files[] and need to add a property named multiple. Here accept is an optional property that used to allow users to upload only image files.

PHP Script This php code handles uploaded files and save to the server.

Read More

bind google places autocomplete on textbox without instantiating a google map

Hello, In this post we will learn how to bind google places into textbox without instantiating google map. lets see how to do..

Read More

PHP code to autocomplete places on textbox

Hello, In this post we will learn how to create autocomplete textbox field with places (Country, City, State) in php. For this purpose we will use google API  and autocomplete script. Code is below…Lets see how to do..

Read More

How to create pagination using PHP and MYSQL

Paging (Pagination) means showing Database results in multiple pages instead of one long page. if we have more than 100 records in database and we want to show all results but not in a single page, so we can devide this results into many pages. MySQL helps to generate paging by using LIMIT clause which will take two arguments. First argument as OFFSET and second argument how many records should be returned from the database. Below is a simple code to fetch records using LIMIT clause to generate paging.

Read More

Echo VS Print Statement

ECHO: echo and print are more or less the same. echo() and print() are language constructs in PHP, both are used to output strings. The speed of both statements is almost the same. echo() can take multiple expressions Example:

Print Statement: The print statement can be used with or without parentheses: print or print(). Print return true or false based on success or failure whereas echo doesn’t return true or false. print cannot take multiple expressions. Example:

Read More