There is something I can not seem to find documentation on: I have this form with multiple buttons. The buttons have their own actions associated with them and
I want to extract and run PHP functions from a JSON string variable. my string variable is something like this : $str = '"field_table_id": { "element_name":
I am creating an app and I want that the buttons appear based on your $job. There are 4 jobs, which are all in mysql databases: student teacher staff principal,
I am using Woocommerce with the Woocommerce Subscriptions plugin and I am trying to assign different subscription_id to each item in the cart. So far I have man
I have the code below but it showing an error "Cannot use empty array elements in arrays". It seems that the issue is in this line }), collect(json_decode($pos
I'm coding a master detail page with Symfony 5 and twig I have table product, and another options When I create a product, I want to ask for name and have to ch
So I am a beginner working on a project with symfony 5.2 project with php 8, and I have been trying to run this command symfony console doctrine:fixtures:load
I use multiple database connections in my app, one SQLServ, and another MySQL. I want to debug every query from both servers sequentially. therefore rather usin
Could someone explain me how can I add some entities in to database for test purpose? I want to test that endpoint /show/{id} show correct response, but to chec
i am learning the codebase below form a different developer.i have understood all the sections except this line which defines this variable $price = (int)str_re
I am trying to email a form data with phpmailer. I am stuck with it. for some reason I am getting Failed to load resource: the server responded with a status of
I am receiving an HY093 (Parameter count mismatch) SQLSTATE on a query where I don't believe a mismatch exists. Below I have a complete PHP script to reproduce
Help.. Probably simple solution, but. I have a widget definition showing up outside of my page frame boundary at the bottom. I can't find what is causing this.
I have product categories with the meta value "old_id", I'm trying to make a function that will return the new product category id using the old id (with meta k
I am creating a checkout session where I want to add shipping rate which I've created in Stripe Dashboard. This is my code: $charge = $stripeClient->checkout
In a piece of software, I merge two arrays with array_merge function. But I need to add the same array (with the same keys, of course) to an existing array. Th
I tried to set as only biginter but it lost its autoincrement properties. So I tried adding auto-increment as well. $table->changeColumn('id', 'biginteger',
I have to add Product SKU to Woocommerce metatags product page (Facebook OpenGraph). I've tried to add global $product; echo "<meta property='og:id' content=
When i include curl_setopt($ch, CURLOPT_WRITEFUNCTION, 'curl_write_flush'), i get headers inserted into the $body. But without CURLOPT_WRITEFUNCTION everything
I have created a symfony project and am having a date issue. I would like to make a request which inserts the current date in the database. In my entity my fiel