Skip to content

Tag: php

Laravel: how to pass GET array to controller?

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&…

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

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…