Jquery | attr | Get HTML attribute's value You can get the value of an attribute for the first element in the set of matched elements using the .attr() function.   Return the value of …

Last updated 1 year, 5 months ago | 324 views

Tags:- JQuery

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 1 year, 5 months ago | 561 views

Tags:- JQuery JavaScript TINYMCE

JQuery | Uncaught TypeError: e.indexOf is not a function This error occurs because you may try to load an event handler which is removed from the latest version of jQuery. Event handler like .load(), .error(), …

Last updated 1 year, 6 months ago | 2706 views

Tags:- JQuery

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 1 year, 6 months ago | 889 views

Tags:- CodeIgniter

PHP | Warning: A non-numeric value encountered This error occurs when you are trying to do a mathematical operation on an integer with a nun-numeric value or a string.  Info: New E_WARNING and E_NOTICE errors …

Last updated 1 year, 6 months ago | 3233 views

Tags:- PHP

PHP | Comments A comment in PHP code is a line that is not executed as a part of the program. It's only read by someone who is looking at the code. By reading the comments …

Last updated 1 year, 7 months ago | 363 views

Tags:- PHP

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 1 year, 7 months ago | 1222 views

Tags:- PHP

PHP | Syntax, and Tags PHP introduces a list of Tags to code PHP. PHP tags allow the PHP parsing engine to get in and get out from the PHP block. A PHP script can …

Last updated 1 year, 7 months ago | 346 views

Tags:- PHP

PHP | Statement $x = 3 + "15%" + "$25"? The correct answer is 18. Here’s why: PHP is a  loosely typed language, therefore it does automatic type conversion based on the context in which …

Last updated 1 year, 7 months ago | 357 views

Tags:- PHP

PHP | Array error fix | array_merge() The output will be as follows: array(2) { [0]=> int(1) [1]=> int(2) } NULL NULL It will also generate two warning messages as follows: Warning: array_merge(): Argument #2 …

Last updated 1 year, 7 months ago | 356 views

Tags:- PHP

PHP | Output of the following statements var_dump(0123 == 123); var_dump('0123' == 123); var_dump('0123' === 123   var_dump(0123 == 123) This will output bool(false) because the leading 0 in 0123 tells the PHP interpreter to treat the …

Last updated 1 year, 7 months ago | 396 views

Tags:- PHP

PHP | output of $a and $b once this code $a = '1'; $b = &$a; $b = "2$b" executed; Both $a and $b will output a string "21".   Because the statement $b = &$a; sets …

Last updated 1 year, 7 months ago | 358 views

Tags:- PHP

Codeigniter | List Databases supported By Codeigniter Following Databases are supported by Codeigniter Frameworks: Database Name Drivers to support Codeigniter MySQL MySQL (deprecated), MYSQLI and PDO drivers Oracle oci8 and PDO drivers PostgreSQL Postgre and …

Last updated 1 year, 9 months ago | 724 views

Tags:- CodeIgniter

Codeigniter | routes  Routing rules are defined in your application/config/routes.php file.    In it, you'll see an array called $route that permits you to specify your own routing criteria. Routes can either be specified using …

Last updated 1 year, 9 months ago | 376 views

Tags:- CodeIgniter

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 1 year, 9 months ago | 994 views

Tags:- CodeIgniter