Fine is the given value is exists or not in array in php
Function for Finding if the value is exists or not in the array given array in_array(search element, array) This function return TRUE if the given value is exists in the array otherwise return FALSE...
View ArticleSigned and unsigned inter datatype with it’s storage range
Bigint : Signed range: -2^63 (-9,223,372,036,854,775,808) to 2^63-1 (9,223,372,036,854,775,807) Unsigned range: 2^64-1 (0 to 18,446,744,073,709,551,615) Size: 8 bytes Int : Signed range: -2^31...
View ArticleQuery for getting second highest salary value
1.Using Limit and group by SELECT sal FROM employee_table WHERE sal = (select sal from employee_table GROUP BY sal ORDER BY sal ASC limit 1, 1) 2.Using joins SELECT sal from employee_table as t1 where...
View ArticleHow to configure Codeigniter framework
1. Download latest version from codeigniter home site ( http://www.codeigniter.com/downloads/ ) 2. Unzip download codeigniter framework 3. Copy and past the unzip folder into your localhost...
View ArticleFolder structure for codeigniter
1. In system folder all the system configurations libraries are placed 2. System -> core folder all the core libraries are placed (like benchmark, Hook, input, output, security, router etc) 3....
View ArticleHow to check number of arguments to a function in php in dynamically
Bye using func_num_args() to get number of arguments for a function Bye using func_get_args() to get function arguments dynamically
View Articleindex.php basic structer in codeigniter
1. First it execute default file index.php in rout folder In index.php first define the application environment (development, testing, and production) a. Development level mean it display all type of...
View ArticleDifference between Codeigniter 1.7.3 and 2.0
Support for PHP 4 is gone, PHP 5.1 is now a requirement. CSRF Protection built into the form helper(CSRF – Cross-Site Request Forgery) Added routing overrides to the main index.php file, enabling the...
View ArticleHow to configure default controller in codeigniter
In codeigniter 1.7.3 configure directly in the routes.php file under application -> config folder $route['default_controller'] = "welcome"; In codeigniter 2.0 we can configure in two ways 1. In...
View ArticleHow to connect multiple databases in codeigniter
1. There are two ways to connect the database a. Automatic connecting The “automatic connection” feature will load and instantiate the database class with every page load. To enable “auto connecting”,...
View Article
More Pages to Explore .....