I’m struggling with my .htaccess file and setting it up the way I want it. The main function is a website that gets the language from the subdomain and the current page from the subfolders. Requirements I have three requirements that I need my .htaccess file to do; Wildcard subdomain redirected to lang …
Message not dispatched async despite configuring the handler route to be async in Symfony Messenger
I’m working with Symfony 4.4 and Symfony Messenger Messenger configuration includes a transport and routing: Though the handler looks like configured correctly (when I run console debug:messenger it shows up correctly assigned to transport) The message class SnowplowMessage is not queued, but sent insta…
Two or more SQL queries in PHP function
Learning a graph-building PHP script I met a situation when PHP function performs only first query. Original code ALL OK, everything works, I have a pie graph with correct data. But when I add one more query to update data before further processing this case the function performs only first query adding +1 to…
JS event listner on int-only CSS class
I have the following problem: I have the following code in PHP: So the class of is: details-control-1, details-control-2 and so on But it doesn’t work. If I use words-only for the details-control class, it works fine. The goal is to create a table and trigger a JS action when a row is clicked. Thank you…
Why doesn’t my input value end up in tax_query terms after I submit form with ajax
I would like to change my tax_query terms after I submit form with ajax. Ajax form is submitting every time I click on li element. For some reason the data doesn’t end up in terms. Form setup Ajax WP_query Answer Your code does not access the form for the filters. I suggest you do this instead
how to show value from hidden box when button onclick in php loop
i trying to build shop simple site for learning but i got stuck when i click button. when i click it nothing happen. it should showing text from value on hidden button when i click button. below is my php code the result is multiple button appear but nothing happen when i click button. total button is based f…
How do I return multiple results from my Stored Procedure function if it returns only one result?
I have an application right now that uses SQL Server 2017. When I am executing a stored procedure on SSMS, it shows all of the data. But then, on PHP, when I am executing it, it only shows the first data that comes up. This is the command: The stored procedure I am using: PHP Code I am using: (note:
My index.html PHP page will not load when my login code is present
I watched a tutorial to build out a registration / login page. The register.php page works fine and writes new users to my mysql database. The index.html page will not load at all for data entry as written (but doesn’t give me a specific error). I have checked it against the tutorial. I ran the code thr…
check index of columns in key of an array and remove columns with value 0
I have a php code that takes the matched rows of a csv file and puts them in an array. my csv file looks like this: and my php code is so var_dump($sortiment_array); will give me the following What I would like to do is to have the 0 columns taken out from the array and so therefore I need
Laravel Carbon change date to specific data
How to change f.e. only month and day in existing date variable(object ?)? I’ve got date type fields in db: And then I want in blade view change according to special conditions. Above code changes the date to something like “1970-01-01”. The year could stay as it is stored in current variabl…