Posts

Showing posts from May, 2022

Form validation check | CODE { The say foundation | project }

//File Namevalidatorchklist.js //============ Function to check field having no value =============== function blankCheck ( controlId , msg ) {     if ( $ ( '#' + controlId ). val () == '' )     {         // alert(msg);         // alert(controlId);         $ ( '.errMsg_' + controlId ). html ( msg ). show ();         $ ( '#' + controlId ). addClass ( 'error-input' );         $ ( '#' + controlId ). focus ();         return false ;     }     return true ; } //____________________________________________________________________ //Blade page: //employee Validate Message:     let validateMsg = [];     if ( ! blankCheck ( 'employerName' , 'Name can not be left blank' ))       validateMsg. push ( "Name can not be left blank" );       // return false;     /* if (!blankCheck...

MySQL Stored Procedured for learing access.

     CREATE DEFINER=`root`@`localhost` PROCEDURE insert_data(   userid  INT,                                           password VARCHAR(100),                                           username      VARCHAR(100),                                           useraddress   VARCHAR(100),                                           usergender    VARCHAR(100),                                           userphone ...