Codeigniter | Include image, CSS, and js file In Codeigniter, we need to load URL helper in the controller and then use the base_url() function to load the resources. // loading script <script type='text/javascript' src="<?php …

Last updated 6 years, 11 months ago | 7426 views

Tags:- CodeIgniter

SQL | difference between BETWEEN and IN operator The BETWEEN operator selects all records between the given range whereas IN operator selects all matching records given with the WHERE clause.   BETWEEN operator The Between operator in …

Last updated 7 years ago | 7231 views

Tags:- SQL MySQL

 PHP | implode() and explode() function implode() function is use to convert an array into a string where as explode() function is used to convert an string into an array   implode() The implode() function …

Last updated 7 years, 2 months ago | 7145 views

Tags:- PHP

HTML | Make an anchor tag to do nothing | href="javascript:void(0);" To prevent reloading a page when a link clicked is something like preventing the default behavior of an element. It can be achieved by providing …

Last updated 6 years, 1 month ago | 7013 views

Tags:- HTML JQuery JavaScript

PHP | Case Sensitive In PHP, keywords (e.g. if, else, while, echo, etc.), classes, functions, and user-defined functions are not case-sensitive but all variable names are case-sensitive.   If you defined function name in lowercase, …

Last updated 6 years, 9 months ago | 7010 views

Tags:- PHP

CodeIgniter | What is helpers | Load helper file Helper is simply a collection of function in a particular category which helps you with tasks. The helper file can be loaded in controller constructor, some …

Last updated 6 years, 11 months ago | 6875 views

Tags:- CodeIgniter

Jquery | Auto Focus On Next Input Field The jquery code for autofocus on the next text input field. $(".input-key").keyup(function() { if ($(this).val().length == $(this).attr("maxlength")) { $(this).next('.input-key').focus(); } }); Let's go through the above jquery …

Last updated 6 years, 2 months ago | 6769 views

Tags:- HTML JQuery JavaScript

PHP-MYSQL |  mysqli_fetch_assoc() VS  mysqli_fetch_array() mysqli_fetch_assoc() function fetch a result row as an associative array where as mysqli_fetch_array() function fetch a result row as an associative array, a numeric array, or both.       mysqli_fetch_assoc() The mysqli_fetch_assoc() …

Last updated 7 years, 9 months ago | 6700 views

Tags:- PHP PHP-MySQL

PHP | Add numbers of days to a date Simple and easy way to add some days in a given date using strtotime() function. <?php $p_date = "2019-01-10"; echo date('Y-m-d', strtotime($p_date . ' + 1 days')); echo …

Last updated 7 years, 5 months ago | 6211 views

Tags:- PHP

Django rest framework  authentication error “ TypeError: 'type' object is not iterable ” This error comes because "authentication_classes" expecting an iterable(list/tuple) but somehow it is getting something else. So it needs to check a few …

Last updated 5 years ago | 6133 views

Tags:- Python Django django-rest-framework

PHP | Stop the execution of php script | exit() funtion By using exit() function we can stop the execution of php script.   <?php $a = 10; $b = 20; $c = $a+$b; exit(); …

Last updated 7 years, 2 months ago | 6057 views

Tags:- PHP

$name and $$name both are variables but with a single difference that is $name is just a normal php variable where as $$name is known as reference variable. It allow you to use $name variable's …

Last updated 7 years, 2 months ago | 5827 views

Tags:- PHP

Codeigniter | Set timezone To set default timezone in Codeigniter, you can add the date_default_timezone_set() function in your application/config.php or index.php file. date_default_timezone_set('your timezone');   <?php // India timezone date_default_timezone_set('Asia/Kolkata'); ?>  

Last updated 6 years, 11 months ago | 5753 views

Tags:- CodeIgniter

JQuery | TinyMCE | Clear TINYMCE editor  There is a method called setContent() in TINTMCE which you can use to reset/clear the TINTMCE editor. <script> // if one editor existing in your page. tinyMCE.activeEditor.setContent(''); </script> …

Last updated 6 years, 7 months ago | 5747 views

Tags:- JQuery JavaScript TINYMCE

Data cleaning is one of the most essential steps in any data analysis process. Raw data is often messy — it may contain missing values, duplicates, errors, or inconsistent formatting. Fortunately, Pandas provides powerful tools …

Last updated 1 year ago | 5370 views

Tags:- Python Pandas