How to pass array of GET parameters to the controller? This is my route file routes/web.php: And my controller ‘app/Http/Controllers/Parser.php’: So, I expect to get an array of parameters like this: But if I pass GET array to my route path: http://example.com/ids?ids[]=1&ids[]=2&ids[]=15&…
Tag: php
Uncaught SyntaxError: Unexpected token < in JSON at position
I am currently trying to make a system of “favorites”. It works correctly but in the console of my browser gives an error (image below) and I do not understand why it happens. I tried to find solutions but I can not understand them at all. Can anyone help me? index.php: scripts.js: The error I get…
PayPal checkout buttons JS to 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 1 year ago. This post was edited and submitted for review 1 year ago and failed to reopen the post: Original close reason(s) we…
Laravel grouping or taking from list in six
I’m not sure the title of this topic is correct, I apologize, you suppose I have this list which I get them from the database: as you can see we can grouping them with the first part of each item that we can have that them in three groups, after grouping them I want to use foreach for each one
phpmyadmin 403 Forbidden after php downgrade from 7.4 -> 7.3 on CentOS 7 Apache
I have acquired VPS and got it with LAMP. I installed phpmyadmin and configured it’s phpmyadmin.conf file to make it accessible from browser and it was working. Later I upgraded my PHP 5.x to 7.4. version following this tutorial: https://computingforgeeks.com/how-to-install-php-7-4-on-centos-7/ After up…
Remove all taxes in WooCommerce for a min cart total and specific countries
we need to charge 0 VAT for UK orders that are greater than 150 euro including shipping and payment gateway fees but excluding the 20% normal VAT. So if a British residential address orders something at 130 and shipping and payment gateway fees are 9 then we charge VAT so the customer pays 139+9+20% VAT, but,…
How do I assign different variables for an SQL result that is joined
I am working on a project and I came across something that I just don’t know how to solve. I have 3 tables in a Firebird database : Team 1 – jumping The player 10 and 15 are in Team 1 And the last table is this one : Player 10 -> Alex -> age 25 -> height 175 Player
Compare and trim binary/unicoded string to normal string?
I am using below mysql query to check which records vary from the trimmed value Above query returns binary value and trimmed value as shown below. Result of mysql query: Highlighted values in above image show that binary value vary from trimmed value. I tried below 2 things: calculating length of both binary …
Create folder Google Drive API with PHP
recently I have set up an automatic file creation system on the google drive, I have integrated the API into my symfony application, I manage to authenticate myself, etc., but I do not block on the step of creation of the file. I have this error that occurs: I do not really understand where this can come from…
Select2 is not selected when update a select field by ajax call
I am facing a problem when I use select2 class in select option. When I insert a form data using a field select2 class by ajax call then it is working properly But when I update that select2 field by ajax calling same form firstly it is not selected value that I inserted first. Note ajax response is working p…