I’m sending 2 datas with same name at the front side like this And then I’m trying to store that value in my database through my model methods in codeigniter 3 This is what I was doing before with just 1 data But now that im dealing with more input data i dont know how to handle it im storing
Tag: php
advanced custom fields can’t do nested loops repeater inside repeater have_rows() not doing anything
I have a repeater inside a repeater and I need to loop what is in it. I’m following this: https://www.advancedcustomfields.com/resources/have_rows/ This is my field structure: So with that in mind, as I understand it, I need to loop over agenda_section_events and inside that I need to get rows https://w…
Why are the letters tantan rendering an emoji?
I am working on a laravel web application and in the word instantaneous, the letters tantan are being replaced by an older looking emoji. Capitalizing any of the six letters breaks the emoji. This web app is running on laravel 8.4 and this problem could not be replicated on two other apps running laravel 5.8.…
PHP Upload pdf file and replace the file name with a custom one
I have a problem, I can’t get php to replace the name of the pdf with “$fiscale”. I am a new php user and I would need a hand. Thanks to everyone for the possible answers: 3 (I am creating a site that allows you to upload pdfs with a name chosen at the beginning.) php: html: Answer Try using…
Rename “Have A Promotional Code?” in Woocommerce
check please: http://www.baroniarialb.cat/finalitza-la-compra/ I have AVADA and Woocommerce theme installed, but I need to change the “Have A Promotional Code?” and I can’t find the correct code to do it. I have already tried different ways that appear on the internet without success from fu…
ErrorException Array to string conversion in Laravel form submission with repeater fields
In my Laravel application, I have the following form to submit data: This is my create.blade.php And my controller looks like this: Now the problem is, whenever I tried to submit the data, it gives me an error saying ErrorException Array to string conversion test_type and test_result fields are repeaters. Due…
How to run okta auth sample for php
I download sample code from github https://github.com/okta/samples-php/tree/develop/okta-hosted-login and run it following guide. when I start server, it shows this issue. if I refresh page it says how to fix this issue? Answer Try to generate a token on okta project manage panel. Copy it to config file in yo…
Button on a view with a href that has a variable passed in the route?
I would like a button’s url to take it to a page with a ID in the URL. Controller: The button with URL: Despite the value $ingredientsid not being blank, it still won’t place the value in the URL link. How can I pass a variable from the Controller method into a button url? I can get it working in
How to order by use in codeigniter
My table data is like that ID NAME order 1 English 0 2 Italian 1 3 Spanish 2 4 Hindi 1 5 Bengali 3 6 Tamil 2 my query I want data like this order-1,1,2,2,3,0 ID NAME order 2 Italian 1 4 Hindi 1 3 Spanish 2 6 Tamil 2 5 Bengali 3 1 English 0 Answer Try this:
PHPUnit can’t generate code coverage when running tests in separate processes
I have a problem that I could not find the solution on Google. When I run my unit tests with PHPUnit and Xdebug, I would like to do a code coverage. However, when I do that, I get this error: I realized that this is because in some of my tests there is this at the top: When I remove