Category : PHP

139 posts

Do you want to add auto-suggest / auto-complete feature on text box, If yes then in this post I am going to share complete jQuery php and mysql tutorial for adding step by step auto-complete feature on input box. Auto suggest feature helpful as per user experience point of view like you have lot’s of …
Composer in php with example of how to use it in Codeigniter project. Last night i was studying about composer in php, It works great like npm package.json, Now time to start your next php application with composer. What is composer? Composer is a tool for dependency management in PHP. It allows you to declare …
This is a simple php and jquery based image upload script to upload image without page refresh Lets see how this works Create a html page with some jquery script index.html <html> <head> <title>Image upload without refresh page</title> </head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.form/3.51/jquery.form.js"></script> <script type="text/javascript" > $(document).ready(function() { $(document).on('change', '#photoimg', function(){ $("#preview").html(''); $("#preview").html('<img src="loader.gif" …
Here we are going discuss about how to upload image or file without refresh page in cakephp and jquery. Create controller in cakephp ProfilesController.php class ProfilesController extends AppController { var $name = 'Profiles'; public $uses = array('Profile'); function changeprofilephoto() { $profile_id = “14”; // $path = "../../app/webroot/profilepic/";//set path $valid_formats = array(".jpg", ".png", ".gif", ".bmp", ".jpeg");// …
With the help of php we can easily import our excel or csv file data in our Mysql database. So i am going to show you some methods doing this easily How to import excel file into mysql using php To import excel data into php-mysql records first create a table with required fields. Make …
This simple tutorial belongs to newbie php and cakephp developer, Here i’ll tell you the simplest trick to export your mysql data into excel/csv, Every time we need this while generating reports so this is the simplest line of code to do this But If you want more customize report you must use any third …
In this post i am going to talk about very useful script written in php and jquery that is image/file upload with progress bar.I have created a very minimal code without any big uploading libraries. Please Note: The progress bar requires modern browsers that support HTML5 tags and XMLHttpRequest is a new HTML5 feature that …
This is a very simple html script to add city, state and country list of world in your website without any extra effort, Just copy and paste below html code in your website. Note: Please don’t change select box id and class name otherwise script will not work. Select Country Select State Select City <select …
PAGE TOP