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 last year. Improve this question I have two tables on my database named user and products. I can register by email in the user …
Tag: php
How to pass the explode value in another foreach in PHP
I am getting all the data from the database and one of my column data is 1|3|6|8. I am using explode to get the output. Now, I have a checkbox list that I am getting from the database and I have to pass the explode value in the checkbox list to check the checkbox. I know I have to use
Laravel 8 custom headers run only for home page
I want to add custom headers for every response from my Laravel project. I created a middleware using php artisan make:middleware customheaders then I used this code in customheaders middleware then I added my class to kernel Now if I run my application home page localhost:8000 I can see my custom headers but…
Laravel 8: Custom Middleware Does Not Seem To Be Working
I’m using Laravel 8 for my project and in this project and I have created a custom Middleware called Admin that goes like this: And I tried applying it like this: And on Kernel.php: So I called the isAdmin() at User Model which simply checks if the role of the user is correct or not: Currently, I have t…
Compare 2 multi dimension array and update old array to latest value in PHP [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 last year. Improve this question I need your help in PHP I have 2 array. $old array have 5000 records example: New Array not mu…
How to make all PHP echo values go into a HTML Table
How do I fix this issue, you see in the picture below, my code creates a table successfully and echos the first item correctly, but if any other item is added to the cart, it gets displayed below the table, outside the border, not in a row. Desired Result: For ‘Sara Lee Muffin’ and the quantity, a…
HTML Calendar and JS problems
I would like to make a Javascript-based calendar for managing holidays. My problem is, I am using a SQL database to store the holidays, which I am accessing with PHP. How can I use the results of the PHP query in a JS Script ? For example, to add holidays for an employee i have to do that : When
Why does PHP 7.4 with mysqli only run in root directory? [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed last year. Improve this question Recentl…
Stream Filter memory usage
PHP v7.4.16 I have a fairly basic stream filter (which extends php_user_filter), which I’m using to normalise CSV files as they’re transferred to another destination (s3 bucket using the stream …
How to add elements to a string from $row? [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 last year. Improve this question How I can get this query to create another string from the outputted rows? You see, ‘$co…