Latest Post

PHP Image upload without refreshing page using jquery example

In this post i show you how to image upload without page reload using jquery ajax. jquery ajax through you can upload image and store record into database in php. i use jquery.form plugin for image uploading. So you can do by following few step of file uploading ajax jquery. <strong>Preivew</strong> <img width="100%" style="border:2px solid red" src="/upload/imageupload.png"> <br/> First you have to create index.php file as i do in following file, so create index.php file and put bellow code. <strong>index.php</strong> <pre class="code language-html"> <html lang="en"> <head> <ti.....

By Hardik Savani | March 4, 2016 | | 6174 Viewer | Category : PHP Javascript jQuery
READ MORE

How to create middleware for XSS protection in laravel 5?

XSS(Cross Site Scripting) protection must need in your site because if you do not XSS protection then your site is not secure. XSS filter through you can remove html tag from your input value and it is very important to remove html tag for security. in your laravel 5.2 application you can implement by using middleware concept in your project. so how to create XSS filter middleware in your laravel application by using following step. First fire following command and create middleware: <strong class="step">Create Middleware</strong> <pre>php artisan make:middleware XSS</pre> Now, you can see new.....

By Hardik Savani | March 4, 2016 | | 3541 Viewer | Category : PHP Laravel
READ MORE

How to generate random alphanumeric string in PHP?

In this example i am going to show you how to generate randomly alphanumeric string OR number in PHP. when you need you generate random alphanumeric string for your unique field then you can easily create using substr(), md5(), rand(), uniqid(), mt_rand(), time() and str_shuffle() php function you can create several way unique code using following example: <strong>Example</strong> <pre class="language-php"> Example 1 $generated = substr(md5(rand()),0,5); print_r($generated);<br/> Example 2 $generated = rand(10000,99999); print_r($generated);<br/> Example 3 $generated = substr(md5(uniqid(rand(.....

By Hardik Savani | March 4, 2016 | | 1399 Viewer | Category : PHP
READ MORE

How to use each loop with class element of html in Jquery?

Whenever you need to use each loop in jquery then you can follow this example code. each with html class you can get whole object of that class using $(this) jquery function. In following example you can see i get attribute data-id using $(this).data('id'), that means you can take current class data attribute value. <strong>Example:</strong> <pre class="code language-html"> <html lang="en"> <head> <title>Each Loop with Class Jquery</title> <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> </head> <body> .....

By Hardik Savani | March 4, 2016 | | 626 Viewer | Category : Javascript HTML jQuery
READ MORE

How to import CSV file using mysql

In this post we have learn how to import CSV file using LOAD DATA INFILE statement. this is a very simple example for a import file to the database. Here we have provide a full sysntax for LOAD DATA INFILE statement. <strong>Sysntax</strong> <pre class="language-mysql"> LOAD DATA [LOW_PRIORITY | CONCURRENT] [LOCAL] INFILE 'file_name' [REPLACE | IGNORE] INTO TABLE tbl_name [CHARACTER SET charset_name] [{FIELDS | COLUMNS} [TERMINATED BY 'string'] [[OPTIONALLY] ENCLOSED BY 'char'] [ESCAPED BY 'char'] ] [LINES [STARTING BY 'string'] .....

By Hardik Savani | March 3, 2016 | | 1695 Viewer | Category : MySql
READ MORE


length Run Project Version Request Method Sortable Generate DATEDIFF() bootstrap-growl Animation split strpos Loading helper ajaxStart Jquery Plugin Google OAuth Scout Package Parsleyjs Remote Google Chart ppa Ajax Request DB Allow Artisan Command Current Page filesize() filter Technology Old Remove Sitemap inner join lowercase thomaswelton/laravel-gravatar FadeIn Request ajaxComplete Select Check Chart.js milon/barcode daterangepicker PHPExcel Variable npm preg_match laravel-elixir groupBy() pngquant Laravel 5.3 yajra/laravel-datatables-oracle Segment oauth PostgreSQL PayPal Tag Manager plugin strtolower Pull SUM() PHP artisan pop() Null stevebauman/location composer package Chosen JS Carbon Force Typeahead JS Key Datetimepicker Folder Global Variable away() Snippet Ckeditor jQuery Class Source Code Migration Control Mysql Concat COUNT() apache2 Laravel 4 Email Rewrite file_exists Join Subscription Query Algolia Package read more guzzle http client Paging Commit tagsinput.js AngularJS Filter XSS URL Master mac Hard node.js Accordion Instagram API Clear screenshotmachine.com API Homepage 404 error page Captcha code JSON Attr Sort Tutorial Key Constraint no-captcha hasTable Bootstrap Notify Plugin refs Terminal softDeletes Log Stripe JS execute query Interface Element Highchart Opencart dompdf Example Pagination Module nl2br Components & Slots Artisan Laravel 5.4 Upgrade After Database Convert Trans Helper Calculate validator.js Demo Database Seeder QR Code voyager package Zip tree view