The following select query returns next auto increment value:
SELECT AUTO_INCREMENT FROM information_schema.TABLES WHERE TABLE_SCHEMA = "db_name" AND TABLE_NAME = "table_name"
The following select query returns next auto increment value:
SELECT AUTO_INCREMENT FROM information_schema.TABLES WHERE TABLE_SCHEMA = "db_name" AND TABLE_NAME = "table_name"
When you make any changes on a form with UniformJs and if you make changes on the form such uncheck a checkbox, you must update your changes on uniform elements.
// make a checkbox (uniform element) checked $('#checkbox').prop('checked',true); // update uniform element $.uniform.update('#checkbox'); // or you can make update for all uniform elements in the form $.uniform.update();
Maximum value of cookie expiration time is 2147483647 (2^31 – 1 = 2147483647 = 2038-01-19 04:14:07) [see: RFC 2616, 14.6 Age]
So the example code snippet:
// substracting current time from last exp. time because CI adds current time to the value $unexpired_cookie_exp_time = 2147483647 - time(); $cookie = array( 'name' => 'cookie_name', 'value' => 'cookie_value', 'expire'=> $unexpired_cookie_exp_time ); $CI->input->set_cookie($cookie);