Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [php]

PHP is an open-source, multi-paradigm, dynamically-typed, and interpreted scripting language designed initially for server-side web development. Use this tag for questions about programming in the PHP language.

-2 votes
0 answers
10 views

how to make the system sort by name

how to make system sort by name using php programming language I want to have a code that will make my system sort by name, the name should follow alphabetically I want my system to have a sort by ...
Mark Andrie Ferrer's user avatar
0 votes
0 answers
10 views

how to display this data with while loop or for loop

I retrieve data with the post method as below $no_wa1= $_POST['no_wa'][0]; $no_wa2= $_POST['no_wa'][1]; $no_wa3= $_POST['no_wa'][2]; then I want to display the data above with a while loop and a for ...
user2175817's user avatar
2 votes
0 answers
15 views

What happens inside stack when you add an additional element to an array in php?

I learned php before learning C and C++. That's why when I found out that the developer must defined the length of an array when defining the array itself, I couldn't understand the underlying purpose ...
Abw's user avatar
  • 33
0 votes
0 answers
6 views

Adding a new item to easyadmin collection field overrides the last one

I have a project using symfony 7 and easyadmin 4. All features worked fine untill I upgraded to the latest Symfony 7 release where editing CollectionFields by adding new elements started behaving ...
user26397158's user avatar
0 votes
0 answers
9 views

How to add custom application for default starter in phprunner

I want to add custom application for default starter in phprunner pro v10. I mean, at the homepage of phprunner which we are going to start our project, I need to add my own custom admin theme as ...
Diaran's user avatar
  • 1
0 votes
0 answers
9 views

Create CSV file with PHP using a WHILE statement with a twist

Data from the table 123 CA 456 FL 33 CA This works: $file_name = "table.csv"; $sql="SELECT filename,state FROM table1"; $result=mysqli_query ($dbc,$sql); $fp = fopen($file_name, '...
cdr1's user avatar
  • 19
1 vote
1 answer
24 views

Converting this preg_replace to match a word with a plus

In PHP I need to highlight multiple given words in a string, for example wrapping found matches inside a <em> tag. But if I have a word ending in + I cannot do it. I understand the below problem ...
adrianTNT's user avatar
  • 3,946
-3 votes
0 answers
13 views

How to list articles from the last 3 days on a page with wordpress function code? [closed]

Please help, we need guidance how to insert / display list of articles from the last 3 days on a page with wordpress function code? i have searched many times but still didn't find the answers ... ...
Nobartv News's user avatar
1 vote
1 answer
22 views

Redirect guests from WooCommerce checkout to My account login and back to checkout once logged in

I use the following code (pasted in my theme functions.php file) to redirect unlogged users from checkout page to WooCommerce My Account login form: add_action( 'template_redirect', '...
Abaol's user avatar
  • 21
0 votes
1 answer
30 views

PHP PDO error - SQLSTATE[HY093]: Invalid parameter number

could someone have a look at my code and help me figure out what is causing the error in my PDO query. The query works fine when I search by "Department", "Datarange", "...
cornacum's user avatar
0 votes
0 answers
11 views

Is there a PHP MSK Client library that supports using IAM roles

trying to use php client to connect to a MSK kafka cluster setup to use IAM roles All code I can find shows the need for a username and password in the SASL config, is there a way to use IAM role ...
Gregg's user avatar
  • 13
0 votes
0 answers
12 views

Laravel Filament Form export to PDF

I want to send an email to the customer after filling up the form, I tried to use Barryvdh\DomPDF for that, I had two functions loadHtml and loadView, I tried this way : controller : <?php ...
NourEddine GACHTOU's user avatar
-1 votes
0 answers
16 views

Connect PhpStorm debugger to Xdebug with Warden

I'm getting an old Magento 1 project up and running, and am hitting issues getting the debugger working. Everything is run on Docker, using Warden to manage the different containers. I've followed the ...
stephenpassero's user avatar
0 votes
0 answers
21 views

Is there a way to tell WordPress to use a page theme as the styling of the login page?

I am needing to make a custom login page for my website but need things that are just unavailable (or not available for free) from any of the login page customization plugins. I have created a page ...
Zane Duncan's user avatar
-1 votes
2 answers
36 views

Display logged in user information

I have got a basic registration and login forms and when the user registers then their information is sent to the database and when the user uses the same username and password then they can login ...
KyleL199's user avatar

15 30 50 per page
1
2 3 4 5
97773