Skip to content

Tag: php

Pull values from string to assign into an array

I’ve got a project where I’m pulling data from SOQL using salesforce’s RestAPI. I’ve cleaned up the response and this is what I’m currently working with: I’m working in PHP and I’d like to build an array based off this data. For example: Anyone have suggestions for th…

Display sum of item quantity in PDF export

I’m having issues displaying total quantity of all items at the bottom of my PDF export script I’m using with my WordPress site. I’ve been able to display total quantity of each item using Then I want to calculate the sum of all item quantities and show that as a single figure at the bottom …

How can i reformat array this array?

So i have this database table From that table i want to achievie this (My Expected result) I don’t know the best way to handle this, so for now i create two query. My first query SELECT * FROM ( …

Trigger PDF Download PHP – Laravel 7

I have a simple report page, and I am using Laravel 7 to build it. I want to trigger auto-download a PDF with that view. What would be the most lightweights I should look into? I did a quick Google, and I saw so many options. I decided to try this and did all the steps, below is my final