Recently I upgrade my Ubuntu from 20 to 22. I was using Php7.4 in Ubuntu 20 with the Apache server. After upgrading to Ubuntu 22, the Php Upgrades to 8.1 automa
How can I extract all elements from this array through PHP? I tried to do with array_slice but it didn't help My main problem is that I need t
I want to set a variable "name", I tried: if(isset($_POST['name'])), But not result. I was also looking for other options but could not get results. I have a PH
I am trying to use an if/else statement within an HTML structure of a return in a PHP function: function price_vat() { global $product; $condition = $pr
I am looking for some help. I need to create a dependent dropdown based on the previous input. Everything works in my code, and it sends and receives data from
I have a shipping estimator I am trying to reset via ajax on any cart change. I have the call and ajax working well on all of the page except
Currently the URL, under the WooCommerce 'My orders' tab, for the button when you view an order in detail is equal to /my-account/view-order/ORDER-ID/ I would l
I have a problem with a code. So I have five different payment methods in my site. When a customer select "Cash on delivery" as shipment method all the payment
I'm working on a student project. I'm building an e-commerce website to sell soaps, and the error message I'm getting is the following. Fatal error: Uncaught E
I'm a newbie and still learning how to code. So, any help is much appreciated. This is what I have in an image of what's done so far. How do I save the selected
I have some simple code: $original_image = imagecreatefromjpeg($image_path); $cropped_image =imagecropauto($original_image , IMG_CROP_THRESHOLD, .5, 16777215);
I'm trying to make a secure connection with my database I wrote the following code: <?php // form filled? if (isset($_POST['submit'])) { $user = 'gebrui
I'm working on a google calendar kind of repeat feature using angularjs/php. Trying repeat the event for every 2 weeks on multi selection of days and that even
I want to repeat the event for every 2 weeks on multi selection days and that event will be repeat upto 3 occurances(times) from start date. tried below code. p
i have two 3 files 1 for the database and the others is for add the data and the index but my adddata.php doesn't catch the value and just ret
Im doing the following ajax call: $('#save_sale').click(function() { var save_sale = 1; $.ajax({ type: 'GET', url: 'summary.php',
I have a Symfony web app. As per default, all site calls are routed by Symfony. However, when I want to call for example mysite.com/public/example.img and retre
I have built an HTML form to search through a .csv and return all entries that match the specific input string. My aim is to be able to search through a .csv an
I am using Volt and PHP in phalcon volt partial I want to iterate a loop and in the loop I have php code that accept a parameter this is my code {% for header i
sorry if my question might sound silly. I am trying to create an email address with Cpanel UAPI with LiveAPI.php but I seem to be lost on some codes. The docume