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 2 years, 10 months ago | 3392 views

Tags:- CodeIgniter

Django I Migrate Error: TypeError expected string or bytes-like object "TypeError: expected string or bytes-like object", says the value we have provided for updating the field for the model is not supported. So to resolve this issue …

Last updated 1 year ago | 3377 views

Tags:- Django

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 3 years ago | 3152 views

Tags:- SQL MySQL

Codeigniter | where_in  The where_in() allows you to pass an array in the where clause. It generates a WHERE field IN ('item', 'item') SQL query. Syntax: $this->db->where('condition'); <?php $ids = array('1', '2', '3'); $this->db->from('users'); $this->db->where_in('id', …

Last updated 2 years, 7 months ago | 3082 views

Tags:- CodeIgniter

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 3 years, 8 months ago | 2994 views

Tags:- PHP PHP-MySQL

PHP | Combine two strings There are several ways to concatenate two strings in PHP. Use the concatenation operator [.] and [.=] There are two string operators that are used for concatenation. [.]:  Concatenation operator …

Last updated 3 years, 1 month ago | 2980 views

Tags:- PHP

 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 3 years, 1 month ago | 2859 views

Tags:- PHP

Codeigniter | SET or GET config variables The config set_item() & item() functions are work for SET and GET a config variable in codeigniter   In Codeigniter, by default, all config variables are located at the “application/config/config.php” …

Last updated 2 years, 10 months ago | 2798 views

Tags:- CodeIgniter

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 2 years, 10 months ago | 2726 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 2 years, 1 month ago | 2673 views

Tags:- HTML JQuery JavaScript

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

Last updated 3 years, 8 months ago | 2516 views

Tags:- PHP

HTML | Target attribute To open a pdf file we can use the target attribute of the anchor tag. The target attribute of the anchor tag specifies where to open the linked document. Syntex for using …

Last updated 3 years, 9 months ago | 2505 views

Tags:- HTML

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 3 years, 1 month ago | 2390 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 3 years, 1 month ago | 2295 views

Tags:- PHP

Python | Insert and Get data from an index in Elasticsearch To do so we need to import the Elasticsearch package and create an instance of that by providing the host and port. >>> from elasticsearch …

Last updated 1 year, 4 months ago | 2271 views

Tags:- Python Elasticsearch