I was wondering if anyone could help me please? I have a PHP employee timesheet that tracks hours they have worked by entering the start and end time, code is below; Is there anyway that I can generate a report and get the total hours worked for each employee in a 4 week period please? Many thanks 🙂 Answer As…
Tag: php
Define ‘Path’ (URL) to one level above parent root
In reading various opinions on securing a PHP document containing database access information (to connect to the database), it’s been suggested several times to place this PHP file outside of the root …
How to grouping data array by same value in other array in laravel php
I have some data array like this and i want to regroup this data how to do that and what i suppose to do: [ { “id”:18, “order_id”:9, “invoice”:”…
How do I send all the rows in the table?
You are going to send the full line value using form tag. However, if you send a value, only the value in the last row is sent. How should it be modified? in this table code and receive page code I want result When I submit id 1 rows. Received Page receive value id:1 / corporate_num:1/ store_mbrno:1 When I su…
Sentry + Laravel: how to log an already catched Exception?
We’re using Laravel ( 5.x to 7.x ) in a lot of project and all integrated with Sentry. In some edge case we need to catch some recoverable exceptions to allow page flow to go on using fallbacks, but we also would like to log these catched exception to sentry. I cannot find a documented or undocumented w…
Color show not properly in the js tree
I have a problem to get the color in the js tree. Below is my coding: This is javascript: My output cannot follow the number to present the color if I’ve added “$testing” variable word in the front of the number.Like below the picture: Actually I want the output like below the picture. The c…
empty data in Laravel query
my response always empty ! if I run only one (where) separated in the Query I get data but if I run all three ( where ) Its empty ! my output Answer Change your controller code to something like this And if there’s an OR condition between branch and type then change your code like this
A newbie PHP question – hiding PHP variables from URL
I’m creating a feature for a game and came up with a problem I can’t solve on my own. I made an image generator to show the top dogs of guilds from a JS based Discord bot, the script which generates …
I’m encountering issues docker file sharing : setting volumes [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 1 year ago. Improve this question I have problem mounting local directory and get File sharing has been cance…
default() is not working in laravel migration
I am creating a to do list using laravel, and I have a table with the columns below: ‘title’, ‘description’, ‘completed’, ‘id’ The ‘completed’ column is set automatically whenever I add a new task to …