Category "php"

Update order details in prestashop rest api

I need to update shipping details of an order using rest api in Prestashop. I need to update Tracking no, Tracking company name etc. from rest API. I searched a

Parameter Binding in CodeIgniter 3.1 Query Builder

I have a query $column = 1234; $sql = "SELECT * FROM TABLE WHERE COLUMN = ?"; $result = $this->db->query($sql,[$column])->row(); which works completel

How to update libc.so.6(GLIBC_2.26)(64bit) to 2.27 and more on OPENSUSE LEAP15.2 linux distribution. Opensuse, php8-fpm, php8, apache2

I updated the php7 to php8 and I tried to install php8-fpm (nginx) or apache2, but during installation, I am getting this error: Problem: nothing provides 'lib

Laravel stripe preview Invoice if the subscription has a scheduled transition

Logic of my subscriptions. If the transition from smaller to larger is smooth, I calculate proportionally. If there was a transition from a higher to a lower ta

PHP PDO Sort Function error codes: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '256'

i am trying the sort operation in function but i am getting the error given below. I'm leaving the function codes below error: Xdebug has detected a possible in

Preflight CORS error followed by 404 error

I am experiencing an issue when trying to get data from API for my react app. I am trying to pass protect my API using htaccess file so when trying to send auth

How to pass all user's data when clicking edit button?

I created a display page using php where all users records are displayed in a table and there are delete and edit buttons to manage users, for the delete option

PHPSpreadsheet setAutoSize function not working as expected

I am using PHPSpreadsheet and I'm doing the following to autosize the relevant columns: foreach (range('A', 'K') as $col) { $productsSheet->getColumnDime

Laravel migration: using a native PHP enum

In PHP 8.1, native support for enums were introduced. How can I use them in a Laravel Migration? My first thought would be something like this, but it does not

Display Data from MYSQL using PHP Dropdown

I need to display data from the 'Members' table based on the selected 'grad_date' from a drop down. I have been trying to do it for a while now but have struggl

How to use PHP natsort to sort out mysql records

I have been trying to sort out my mysql records with mysql queries but seems like its just impossible to do it in the natural order. I have values such as a1, a

Flutter http post request to a PHP file

I am using Flutter for mobile app development. I need to make a POST request to a PHP file in order to save data in my MySQL server. However, I check the reques

how i can capture a json value if have a lot of the same value

i get this json response [{"app_id":"com.mojang.minecraftpe","description":"Millions of crafters have smashed billions of blocks! Now you can join the fun!"

How to fix: PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_80_nts_x64'?

I get this error while attempting to run a php command from cmd.exe on Windows 10 pro. Looking in the ext folder, I can see I have the dll. I also have this li

Wordpress | echo attribute_name and _value

I am using flatsome theme and i have a theme action hook called flatsome_product_box_after. Basically he is located after the product picture on my Shop Catalog

I have some problems with the Login (Laravel)

I'm doing an application and I need to do a Login. I already do it, and it was working until yesterday, but today it stops work and I don't know why. I was sear

Contact Form 7 - Conditionally/Dynamically Attach Local Files to Email Based on Input Selection

I have a number of checkboxes that indicate the item that is ordered through our online order form system. For each item selected there is a corresponding .pdf

Remove '.php' file extension but still validate paramaters after trailing slash?

I've been searching for how to do this, and I haven't been able to get anything to work yet. I want to remove the '.php' file extension from all files that have

Regex Error: A lookbehind assertion has to be fixed width [duplicate]

My pattern works in JavaScript. (?<=(?:username|Email|URL)(?:\s|:))[^\n]+ However, when I try to use it in PHP, I get this error: A lookb

Join columns of Day, Month , Year to calculate age

public function patients_view($id) { $patient = Patients::where('id', '=', $id)->first(); // .... } I just need to view the age. Thanks , im usin