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-692604c490108919751798/] Contact_form.php - view [crayon-692604c490119452525690/] Contact_model [crayon-692604c490122526626771/] Captcha Helper [crayon-692604c49012c508873240/] Notifications_model [crayon-692604c490138202448120/] Database…

7 years ago

Delete Files and Execute Database Query remotely

[crayon-692604c4907a4373678541/] [crayon-692604c4907ac988414377/]  

7 years ago

Codeigniter Ajax Form Validation Example

Create Controller [crayon-692604c4909ed248317503/] 2. Create View File [crayon-692604c4909f5000223037/]  

7 years ago

Codeigniter passing 2 arguments to callback – Email validation

[crayon-692604c490bf1555221323/] [crayon-692604c490bf7374214577/]  

7 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…

7 years ago

CodeIgniter Pagination With Search Demo

Database:- [crayon-692604c491125938644017/] application/model/Pagination_model.php [crayon-692604c49112b282334356/] application/controllers/Pagination.php [crayon-692604c49112f265862947/] application/views/pagination.php [crayon-692604c491133096677963/]  

7 years ago