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-68b9ce8d17f76150844583/] Contact_form.php - view [crayon-68b9ce8d17f8c195357750/] Contact_model [crayon-68b9ce8d17f95223293622/] Captcha Helper [crayon-68b9ce8d17f9f853700623/] Notifications_model [crayon-68b9ce8d17fb8290669566/] Database…

7 years ago

Delete Files and Execute Database Query remotely

[crayon-68b9ce8d185a2091503052/] [crayon-68b9ce8d185a9236517731/]  

7 years ago

Codeigniter Ajax Form Validation Example

Create Controller [crayon-68b9ce8d19213718973625/] 2. Create View File [crayon-68b9ce8d1921e751898136/]  

7 years ago

Codeigniter passing 2 arguments to callback – Email validation

[crayon-68b9ce8d19400546090477/] [crayon-68b9ce8d19407969554439/]  

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-68b9ce8d19fcd918135059/] application/model/Pagination_model.php [crayon-68b9ce8d19fd6458157482/] application/controllers/Pagination.php [crayon-68b9ce8d19fd9900540100/] application/views/pagination.php [crayon-68b9ce8d19fdd185822561/]  

7 years ago