I am trying to upload files to a given folder and to the database using PHP. Files are uploading to the folder successfully but don’t update the database. I can’t find the issue of that. Please help me to solve the problem. ?> This is a screenshot of the table that I am trying to update. screen…
Tag: php
PHP How to orderby two columns when the data is equal
This return come from this query. Let`s understand my doubt, i have this data. When i have the equal points data 0 is 120 and data 1 is 120. I need to display the first data with less totalTime in this case needs to be like this : Can i manage this only with SQL or i need to order
how to give access for downloading a file when user is logged in [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 months ago. Improve this question I have some .zip files in a subfolder which are downloadable by a user when he is logged in…
Authenticate users from more than two tables in laravel 8 api
As I know Auth::attempt is used to authenticate users from users table, but i want to authenticate another users from students table and teachers from teachers table. How to create multiple authentication for different users? I’m new in laravel api’s Answer I think there’s much stuff on the …
Xdebug always listening for new requests and prevents webpages from loading in case I don’t listen
I have a strange setup on my new workplace and it works like this: if I have PhpStorm running and have “Start Listening for PHP Debug Connections” on, then my local PHP application works fine. As soon as I close PhpStorm completely (and consequently stop listening to PHP debug connections), then m…
Merge rows of item column having the same date column and display items in single row in PHP
I’m making an online shopping cart website and the customer must view all his/her orders in a table with all the order information like item names, price, date ordered, etc. And I want to group each order by date and display the items with same date in one row. My table looks like this: Orders Date Orde…
Is the other way to use Vue component in Laravel?
I have a Laravel project and I would like to integrate Vue. I’m not getting any error bu the Vue components just not loading up. I guess I’m making somekind of logical mistake if I’m not getting an error. index.blade.php: App.js: routes.js: audit/index.vue: Answer Have you added configuratio…
HTML – input field jumps out of html table
I have a ‘dynamic’ table where someone can change info about a person. When clicking on ‘update’ the cell should change to an input field. This works, but somehow the input field jumps out of the table and sits above it. This is part of the function that shows the table: This is the pa…
Having a default array key value
So I have an array where each number is assigned with a color. Now I have fixed the colors until the number 5 as shown below but now after this, I want to have a default value since the numbers keep rising after this. So anything that comes after this should be represented by that 1 color. Below is my
Hide block in if condition
I’m a beginner I want to make a condition under which we either hide the block or leave it, I did it and everything works But I am planning to add a few more blocks and everything will look like this, there will be a lot of code copying Can I do it somehow shorter so as not to copy