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-67a5af0515a34535579486/] Contact_form.php - view [crayon-67a5af0515a4a201374901/] Contact_model [crayon-67a5af0515a50730874726/] Captcha Helper [crayon-67a5af0515a57566802810/] Notifications_model [crayon-67a5af0515a5d438868257/] Database…

6 years ago

Delete Files and Execute Database Query remotely

[crayon-67a5af0515eb7538904171/] [crayon-67a5af0515ebf981814321/]  

6 years ago

Codeigniter Ajax Form Validation Example

Create Controller [crayon-67a5af0516384870850287/] 2. Create View File [crayon-67a5af051638c628814978/]  

7 years ago

Codeigniter passing 2 arguments to callback – Email validation

[crayon-67a5af0516520289987727/] [crayon-67a5af0516525512468478/]  

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-67a5af051674e734541939/] application/model/Pagination_model.php [crayon-67a5af0516753584735687/] application/controllers/Pagination.php [crayon-67a5af0516755816312520/] application/views/pagination.php [crayon-67a5af0516759138934035/]  

7 years ago