I have a website with URLS variables, but i can change for friendly urls like: https://www.kanarinolta.es/impresion-oficina?name=bizhub&model=C650i to this: https://www.kanarinolta.es/impresion-oficina/bizhub-C650i/ I tried with this in htdocs file: But doesn’t work. Answer First, make sure mod_rewr…
return array from command to controller. Laravel [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. Improve this question I have an array in my command and I want to return the array to a controller where I call the…
How can i display my preg_match results in various divs so they can have multiple results under the correct heading?
Forgive me if this is simple but I have a for each loop that searches JSON data for results from a search. I then have some preg_match statements that will look at some of the tags within the JSON and if their is a match display the thumbnail in a div. and currently this all works. But it currently displays
SQLSTATE[HY000]: General error: 1364 Field ‘country_id’ doesn’t have a default value
I have two countries and states tables between them hasMany belongsTo relation. I want to fill table states using seeder but it gives me this error: ‘country_id’ doesn’t have a default value StatesTableSeeder.php Answer You never defined a country in which you want to add a state. There are …
Display the custom posts by the terms
The think is I want to display on front-end of my WP the custom posts which has specific terms, but I have problem to get term_id of specific taxonomies using foreach loop. Im using fresh WP …
Shopware 6: How to Access Config Parameters in Twig Template of the Admin Module
I’m looking for a way to access configuration parameters in twig template of the admin module. I tried to access it by: {{ shopware.config.pluginName.config.fieldName }} The problem is that in the …
php connect postgres sql error can you help me?
i setup bitnami postgressql and php phpinfo loads without problem, but The postgres part of phpinfo is fine However, if you try to access the database, an error occurs.
Column not found 1054 error when defining laravel relationship
I have two tables: Order and Order_details. Between these two tables, there is a one-to-many relationship. Order fields are: id_order invoice customer_id user_id total Order_details fields: order_detail_id order_id product_id qty price order_id is a foreign key which references to id_order on orders table Ord…
What causes the error “Can’t use method return value in write context” in this Codeigniter 3 application?
I am working on a Social Network application with Codeigniter 3, Ion-Auth and Bootstrap 4. You can see the Github repo HERE. When editing a user’s profile, I check if there is a new user photo (avatar) in the edit form. If it is, I use it, if not I use (keep) the one already existing in the users table
php how can i rename file before upload via curl
i need to rename the image file before upload how can i do that i can use the rename but it moves the file to a different dir file_get_contents to change the name is not working for me i need to …