substr() is used to limit the post length. Syntax: substr($string,start position,end position) Example: <?php echo substr(“Hello smarttips”,0,4); ?> Output:Hello
Relational Operators in sql
Programmers are using number of relational operators for producing required results Commonly used ones are = Equalto < lessthan > greater than <= lessthan or equalto >= greater than or equal to <> IS NOT ! not ^ like -like operator
What is mean by NURSE
NURSE is not a one word.It is a combination of Some Beautiful and meaningful words. N-nobility U-usefulness R-reliability S-sincierity E-effiency
how to redirect a page in socialengine
redirect function in socialengine we can use this code controller for redirecting <?php /** * Index Controller */ class Admin_IndexController extends Core_Controller_Action { public function loginAction() { $this->_redirect(‘/index’); } redirect is core helper function in socialengine. It can use in socialengine controller.
jQuery Validation of login by pressing enter key
Validate login by pressing enter key $(“#username, #password”).keydown(function(event) { // track enter key var keycode = (event.keyCode ? event.keyCode : (event.which ? event.which : event.charCode)); if ( keycode == 13) { // key code for enter key // force the keyboard ‘Enter Key’ to implicitly click the Update button validateLogin(); return false; } else …
