Posts

Showing posts from October, 2022

mulitple where query codeiginter

      $query = $this -> $db -> select ( '*' ) -> where ([ 'b_cat_id' => $b_cat_id , 'b_s_cat_id' => $b_s_cat_id ]) -> get ( 'web_about' ) -> result ();

add filed in table and delete ospecific field

 ALTER TABLE `company_info` ADD `mail_welcome_template` VARCHAR(255) NULL AFTER `payment_option`;

checkbox checked table data selectd

Image
  < div class = "col-sm-4 form-group" >     < label class = "mt-checkbox" >         < input type = "checkbox" name = "all_donor" value = "1" onclick = " alldonar (); " > All Donor         < span ></ span >     </ label > </ div > <!-- all_donar_Modal --> < div class = "modal fade" id = "all_donar_Modal" tabindex = "-1" role = "dialog" aria-labelledby = "exampleModalCenterTitle"     aria-hidden = "true" >     < div class = "modal-dialog modal-dialog-centered" role = "document" >         < div class = "modal-content" >             < div class = "modal-header" >                 < h5 class = "modal-title" id = "exampleModalCenterTitle" > List of All Donar </ h5 >                 < button type = "button&q

other db connected

    $otherdb = $this -> load -> database ( 'otherdb' , TRUE );         $id = 4 ;     if ( $customeThemeSlug ) {       $save [ 'customeTheme' ] = $customeThemeSlug ;         $this -> db -> where ( 'id' , $id );       $this -> db -> update ( 'company_info' , $save );     }     //   $query = $otherdb->select('*')->get('company_info');     $otherdb -> where ( 'id' , $id );     $otherdb -> update ( 'company_info' , $save );     //   $query = $otherdb->select('*')->get('company_info');     $otherdb -> where ( 'id' , $id );     $otherdb -> update ( 'company_info' , $save ); $db [ 'otherdb' ] = array (     'dsn'   => '' ,     'hostname' => 'localhost' ,     'username' => 'root' ,     'password' => '' ,     'database' => 'allthemes' ,     &#

git ignore

  # These are some examples of commonly ignored file patterns. # You should customize this list as applicable to your project. # Learn more about .gitignore: #     https://www.atlassian.com/git/tutorials/saving-changes/gitignore # Node artifact files node_modules/ dist/ # Compiled Java class files *.class # Compiled Python bytecode *.py[cod] # Log files *.log # Package files *.jar # Maven target/ application/config/config.php application/config/database.php application/writable/ # JetBrains IDE .idea/ # Unit test reports TEST*.xml # Generated by MacOS .DS_Store # Generated by Windows Thumbs.db # Applications *.app *.exe *.war # Large media files *.mp4 *.tiff *.avi *.flv *.mov *.wmv

forget password

 step1 : view page :   < a href = " <?php echo base_url ( 'login/forgetpassword' ) ? > " > Forget password ? </ a > step 2:  controller     public function forgetpassword (){         $data = array ();         $this -> load -> view ( 'forget_password_view' , $data );     } step:3  forget_password_view         < form action = " <?php echo base_url (); ? > login/emailcheck" method = "post" >             < div   style = " background: url(' <?php echo base_url () . 'src/' ; ? > images/login-bg.png');background-size: 100%;background-repeat: no-repeat;padding: 30px 40px; " >                 < div class = "form-group" >                     < input class = "form-control form-control-solid" type = "email"                           placeholder = "Enter Email..." name = "email" id = "email"