Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: FIFO / LIFO method in Inventory System
Post: FIFO / LIFO method in Inventory System

I have an inventory system with sales, purchase, purchase return , sales return and purchase addition. But I have to add FIFO / LIFO method in this system. What is the best way to do it. I haven't don...
130 Views
2 Replies
05-23-2022, 04:11 AM
lazyme114
    Thread: AJAX process stopping other requests.
Post: AJAX process stopping other requests.

I have an ajax function that takes from  1 minute up to 30 minutes depending upon data processing. But when the ajax function runs, other pages won't load. I tried many times but until the ajax comple...
166 Views
3 Replies
05-20-2022, 05:36 AM
lazyme114
    Thread: Should I update or delete and Insert?
Post: Should I update or delete and Insert?

I have a function where I have to process large amount of data, and some data may be repeated which needs to be updated. So I am looping through the data and updating if exists and if not inserting in...
217 Views
1 Replies
04-18-2022, 09:58 PM
lazyme114
    Thread: Need Help in advancing my knowledge base
Post: RE: Need Help in advancing my knowledge base

kenjis Wrote: (04-15-2022, 12:03 AM) -- If you want to know how to write test code, our book "CodeIgniter Testing Guide" https://leanpub.com/codeigniter-testing-guide might help you. To be hone...
360 Views
3 Replies
04-15-2022, 02:35 AM
lazyme114
    Thread: Attendance Process Taking Too long
Post: RE: Attendance Process Taking Too long

php_rocs Wrote: (04-13-2022, 06:05 AM) -- @"lazyme114" , Can you show us some code? -- This is the whole code: -  PHP Code: -- public function index() { try { $this->load->model(...
497 Views
6 Replies
04-13-2022, 11:28 PM
lazyme114
    Thread: Need Help in advancing my knowledge base
Post: Need Help in advancing my knowledge base

I have been working for almost 6 years. I can do projects fine. But, when it comes to optimization and refactoring, I know next to nothing. I don't know how to use design patterns. I don't know how to...
360 Views
3 Replies
04-13-2022, 08:06 PM
lazyme114
    Thread: Codeigniter Nepal
Post: RE: Codeigniter Nepal

Happy New Year to all !!
932 Views
2 Replies
04-13-2022, 07:56 PM
lazyme114
    Thread: Return No of rows as Days in between
Post: RE: Return No of rows as Days in between

JustJohnQ Wrote: (04-13-2022, 01:51 PM) -- You can't pull data from MySQL which doesn't exist. If it's that important I would loop through the returned data and add a blank record/object/array when I...
345 Views
5 Replies
04-13-2022, 07:54 PM
lazyme114
    Thread: Return No of rows as Days in between
Post: RE: Return No of rows as Days in between

Found New Way  PHP Code: --       SELECT * FROM bf_attendance where checkin >  2022-03-15 - interval 1 month -- but still if no data no row..
345 Views
5 Replies
04-13-2022, 05:37 AM
lazyme114
    Thread: Return No of rows as Days in between
Post: RE: Return No of rows as Days in between

badger Wrote: (04-13-2022, 02:47 AM) -- group by date -- it would have worked. but I want data even if that days data doesn't exists. maybe an empty row or something like that.
345 Views
5 Replies
04-13-2022, 02:50 AM
lazyme114
    Thread: Return No of rows as Days in between
Post: Return No of rows as Days in between

Hi all, I am doing something like this:-  PHP Code: --     $query = $this->db->where(array(         'user_id' => $user_id,         'date(start) >=' => $start_date,         'date(end)
345 Views
5 Replies
04-13-2022, 02:32 AM
lazyme114
    Thread: Attendance Process Taking Too long
Post: RE: Attendance Process Taking Too long

ignitedcms Wrote: (04-12-2022, 10:30 PM) -- Another thing to add, although I'm not too much of a fan of async and await in PHP, is that 8.1 ships withs 'fibres' So you could potentially async and ...
497 Views
6 Replies
04-12-2022, 11:20 PM
lazyme114
    Thread: Attendance Process Taking Too long
Post: RE: Attendance Process Taking Too long

php_rocs Wrote: (04-12-2022, 07:52 AM) -- @"lazyme114" , There could be a combination of things that could be looked at to determine where the bottle neck is.  Here are some questions you might wa...
497 Views
6 Replies
04-12-2022, 10:03 PM
lazyme114
    Thread: Attendance Process Taking Too long
Post: Attendance Process Taking Too long

I am working on a attendance management system, It gets data from device and saves it on a table (this part is fine since i dont have to do anything for this the device api does it for me.) . What I h...
497 Views
6 Replies
04-12-2022, 12:57 AM
lazyme114
    Thread: How to handle Large no of inputs
Post: RE: How to handle Large no of inputs

It seems that I only need to change the insert query to insert_batch it reduced the time significantly. Thanks for all your suggestions anyway.
656 Views
7 Replies
04-11-2022, 01:17 AM
lazyme114
    Thread: Which way is better and faster?
Post: Which way is better and faster?

I need top 5 notifications. My previous code was:-  PHP Code: -- $result = $this->notification_model->where(array( 'deleted' => '0', "company_id" => $this->session->userdata("company_id"), "date...
355 Views
1 Replies
04-11-2022, 01:11 AM
lazyme114
    Thread: JSON to Array Data
Post: RE: JSON to Array Data

@"luckmoshy" thanks for the reply. It seems my problem is not it decoding the data, its when encoding it. I changed the method of encoding it and now it works fine. Thanks anyway.
374 Views
5 Replies
04-08-2022, 03:48 AM
lazyme114
    Thread: JSON to Array Data
Post: RE: JSON to Array Data

I know that what i want is something like this PHP Code: -- [enrollID[1515]] => 29 [basic_salary[1515]] => 34500 [allowance[1515][16]] => 0 change to enrollID => array( ...
374 Views
5 Replies
04-08-2022, 12:16 AM
lazyme114
    Thread: JSON to Array Data
Post: JSON to Array Data

My Javascript gives me this  PHP Code: -- {"year":"2078","leave_count":"6","month":"11","branch_id":"","department_id":"","allowance_count":"1","deduction_count":"1","expand_collapse":"collapse"...
374 Views
5 Replies
04-07-2022, 11:42 PM
lazyme114
    Thread: Search string in multidimensional array
Post: Search string in multidimensional array

I have an array of permissions. And I want to check if the name of permission contains certain word or not. This is my array PHP Code: -- (     [310] => stdClass Object         (             [...
267 Views
1 Replies
04-07-2022, 02:47 AM
lazyme114

Theme © iAndrew 2016 - Forum software by © MyBB