Categories: Snippets

Random String Codeigniter

$this->load->helper('string');
echo random_string('alnum', 16);

The first parameter specifies the type of string, the second parameter specifies the length. The following choices are available: alpha, alunum, numeric, nozero, unique, md5, encrypt and sha1

Recent Posts

Sample Contact Form with validation, Captcha & Notification

Contact Controller [crayon-663829e0caa5a772961424/] Contact_form.php - view [crayon-663829e0caa6d342017049/] Contact_model [crayon-663829e0caa74516763026/] Captcha Helper [crayon-663829e0caa7c332377612/] Notifications_model [crayon-663829e0caa85833187829/] Database…

5 years ago

Delete Files and Execute Database Query remotely

[crayon-663829e0caed2028187233/] [crayon-663829e0caed9901833859/]  

5 years ago

Codeigniter Ajax Form Validation Example

Create Controller [crayon-663829e0cb015621452170/] 2. Create View File [crayon-663829e0cb01b696915816/]  

6 years ago

Codeigniter passing 2 arguments to callback – Email validation

[crayon-663829e0cb1cb699211763/] [crayon-663829e0cb1d1167059390/]  

6 years ago

Setting Error Messages

All of the native error messages are located in the following language file: system/language/english/form_validation_lang.php To set…

6 years ago

CodeIgniter Pagination With Search Demo

Database:- [crayon-663829e0cb432396572764/] application/model/Pagination_model.php [crayon-663829e0cb439703329651/] application/controllers/Pagination.php [crayon-663829e0cb43c802145234/] application/views/pagination.php [crayon-663829e0cb440019067427/]  

6 years ago