Latest Post

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 | | 669 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 | | 1955 Viewer | Category : MySql
READ MORE

Laravel 5 create Custom Validation Rule example.

Custom Validation Rule is very usefull and interesting concept of laravel 5 because custom validation throught we can re-use validation and use it easily by just name as like laravel core validation(required,same,in etc.). So, In this post i am going to show you how to create custom validation rules in laravel 5.2. you can create very simple way and use too. you can create custom validation rules by few following step and you can see preview of example that give for add custom validation rule. In this example you are creating <strong class="path">is_odd_string</strong> custom validation rule. .....

By Hardik Savani | March 3, 2016 | | 23122 Viewer | Category : PHP Laravel
READ MORE

How to get maximum key value of array in PHP?

Sometimes, you need to get maximum key value of your array but you try to get with loop and any function etc, but in bellow example you can see we can get biggest key value from our php array by using max() and array_keys(). So, let's try to use in your code this way: <strong>Example:</strong> <pre class="language-php"> $myArray = ['2'=>'Hey','4'=>'Hello','1'=>'Hi','3'=>'GH']; $new_key = max(array_keys($myArray)); $new_val = $myArray[$new_key]; print_r($new_val); </pre>

By Hardik Savani | March 2, 2016 | | 900 Viewer | Category : PHP
READ MORE

Example of unionAll in Query Builder Laravel 5

Sometimes you need to bind multimple query then you can use unionAll in laravel. If you use union all then laravel query builder provide unionAll method for mysql union. when you are doing big project or ERP level project then mostly you require to use union for getting data from database with multiple table. In Following example you can see how to use union all in Laravel 5. <strong>Example:</strong> <pre class="language-php"> $silver = DB::table("product_silver") ->select("product_silver.name" ,"product_silver.price" ,"product_silver.quantity"); $gold = DB::table("product_g.....

By Hardik Savani | March 2, 2016 | | 4462 Viewer | Category : PHP Laravel
READ MORE


Captcha code User Agent npm Windows Effect Clear screenshotmachine.com API Dropzone.js apache2 Export Script Specific glob Strip Tags Loading Image Middleware Admin Bootstrap Theme Custom Command Last Bootstrap show password Plugin Payment Gateway lowercase Log PingPong Switchery JS Mysql Concat Laravel Eloquent Sublime After Config array_map Stripe File is_null First Animation Run Project setInterval() characters Loop Snippet Path Issue Client side validation Mailchimp API Bootstrap Plugin Algolia Package Redirect mac Query Builder Custom SEO array_change_key_case Chart php artisan serve Instagram API INTERVAL Email CSS oauth Segment Mail Resize Image Image Upload roumen/feed package Auth Google OAuth uppercase Laravel 4 Collapse split laravel-elixir Sitemap Index RAND() Dropbox API XML guzzle http client pngquant Remove thomaswelton/laravel-gravatar ANDROID_HOME sven/artisan-view package Route Ubuntu Magento Packages strpos Source Code DB Statement React JS Facade Artisan Command select box search pop() Location softDeletes clockface plugin Field ajaxStart upload_max_filesize Mailgun API Twitter OAuth read more Tracking CURL Sublime text 2 Confirm Box DATEDIFF() groupBy() Draggable Redis Example Parameters Xampp SUBSTRING_INDEX() FadeIn Service Provider Origin clearInterval() Event Form Jquery Frontside Validation View refs ServiceProvider Highlight JS RSS gulp Database ngclipboard.js Twitter API Migration Message Directory Automatically Form JS Plugin jquery.email-autocomplete.min.js Master Empty Gravatar Image Attribute toArray() Technology jquery.lazyload.js hasTable Command Control Linkedin API