Skip to content

Laravel query string into api call in routes

I have this route Sadly this doesn’t work I can reach the api with How can i replicate this in my route to work? Answer You got double }} there, try delete it so it will be like this: Edit: Add the route parameter to API function parameters

PDO insert array in array

i’m confused … I am encountering a tiny issue that drives me crazy. I have arrays in an array which i’d like to insert into an SQL table. My issue is that i don’t figure out how to insert arrays in an array … The arrays: Array ( [1] => Array ( [diploma] => Master [institut]…

How to extract a specific parameter in a URL?

I’m trying to only strip out a specific parameter from a URL, but I can only do it at its base form. If the script I use adds additional parameter, then that messes up my output. Here is what I currently have This works perfectly if the $baseUrl = https://www.example.com/page/?id[]= However, the $baseUR…

Dynamically add empty index to array based on default indexes

I have below array, which includes a set of default indexes, that must be present in my final array: The above array is saved in a variable called $entities. Now, I have a 3rd party API, that will return the above entities, but only include them in the response if the entity contains a value. For example, a $…

How can I add more categories to the | select * from users, and more

I am currently having an error which I do not understand how to solve it and the truth is that I have been trying since yesterday and I do not get any solution. Could anyone help me please? FILE: topics.php FILE: db.php FILE: edit.php ERROR: Fatal error: Uncaught Error: Call to a member function bind_param() …

Display random products depending on category

I’m in the single product page of a product. I want to show, after this product, 4 other random products with the same category All I have is this: (PHP) <?php global $product; $…