Posts

Showing posts from January, 2023

Deploy Angular Project with CI /CD to Hostinger with FTP

 1. creat a folder in your project root folder with name .github 2. create second folder in .github/workflows 3. create file in your .github/workflows/main.yml paste this code in main.yml file on :   push :     branches : main <--- select your branch name name : 🚀 Deploy website on push jobs :   web-deploy :     name : 🎉 Deploy     runs-on : ubuntu-latest     steps :     - name : 🚚 Get latest code       uses : actions/checkout@v3     - name : Use Node.js 18       uses : actions/setup-node@v2       with :         node-version : '18'           - name : 🔨 Build Project       run : |         npm install               npm run build       - name : 📂 Sync files       uses : SamKirkland/FTP-Deploy-Action@v4.3.4   ...

Fetch data by Ajax Loop

<script>     $(document).ready(function() {         // code to get all records from table via select box         $("#event_name").change(function() {             var id = $(this).find(":selected").val();             if (id == '') {                 id = 'A'             }             $.ajax({                 url: '{{ url('/ajax_event_management/team_creation_list') }}/' + id,                 method: 'get',                 data: {                     id: id                 },                 cache: false,        ...

Find Current month and Previous month

  <?php    $k=50;     $date=date('Y-m', strtotime(date('Y-m-d') . $k.' month'));        echo $year= substr($date,0,-3);    echo('<br>');      echo $month = substr($date,5);            ?> codeigniter code below:--- $k=0;                    $date=date('Y-m', strtotime(date('Y-m-d') . $k.' month'));                            $year = substr($date,0,-3);        $month = substr($date,5);                        $where = [                          'year(fees_date)'  => $year ,                       'month(fees_date)'...

Dynamic meta tags in php

 //  red  code for get current url  // green code for get dynamic meta  tags  In  Codeigniter  pass  the data in header page just like  below : $data = select record from table  $this->load->view('common/header,data);         <?php               if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on')             $url = "https://";        else            $url = "http://";        // Append the host(domain name, ip) to the URL.        $url.= $_SERVER['HTTP_HOST'];             // Append the requested resource location to the URL        $url.= $_SERVER['REQUEST_URI'];                        $where=[ ...

Popular posts from this blog

Ms Office 2019 activation link