Skip to main content

Posts

PHP array_shift not preserve key

 Objective:     When i want to remove first element from array and preserve key it happened. That is array shift only return key or change the key value of php array. Technolog:     php-8.2 Challenge:     Here, Changed that array keys. Solution:   `array_slice()` used to preserve that array key. syntax:      array_slice(array, starting position, length,  preserve_keys);

bootstrap-popper not allowing html table

  Objective :       Creating popover with html using bootstrap-popover.js Technology:  Bootstrap version - 4.6.1 Popper - 1.16.1 Jquery - 3.5.1 Challenge:     1. basic syntax for popover <button type= "button" class= "btn btn-lg btn-success" data-toggle= "popover" title= "Popover title" data-content= "And here's some amazing content. It's very engaging. Right?" > Click to toggle popover </button>      $ ( function () {           $ ( '[data-toggle="popover"]' ). popover ();      });    2. Put html to that popover syntax <button type= "button" class= "btn btn-lg btn-success" data-toggle= "popover" title= "Popover title" data-content= "And here's some amazing content. It's very engaging. Right?" > Click to toggle popover </button>      $(function () { $('button[data-toggle="popover"]').popover(...

Inventory management system project.

 Objective:       Enable efficient tracking and management of store inventory to ensure products are available when needed. Technology:  PHP 8.2 Codeigniter framework 4.6.1 Codeigniter shield (Auth library) 1.1.0  Firecamp for restAPI testing  Notepad++ code writing (light weight) mySQL  Plan: First people will authenticate using email and password then, Other API access by using Bearer token.    Challenges: Product can measured by different property - {weight, size or volume} Product amount will vary occasionally - {festival, demand} Types of inventory operation - {add, sale, return, remove, adjust, transfer} 1.First challenge:        Whenever measure one material in different measurement then, That material is different product because, It may be in different phase [solid, liquid, gas]. Example- when buying fruit in solid measured as kg , if buying fruit measured in volume. So, same fruit come under different p...