I'm currently learning laravel and creating my first form. Everything is awesome until I want to use {{ old('') }} helper in my blade file for radio buttons. I'
PSR-12 is an extension of PSR-2, and therefore also an extension of PSR-1. The basis of PSR-12 is PSR-2 and therefore a list of differences is provided b
Based on "woocommerce change price in checkout and cart page" answer code that change the total price in checkout page, I have added some extra code to count th
I need to convert input data to lower and then return it in it's original form with PHP, is it impossible or does anyone have a solution? thank you. ps, i'm
Note: Enabling the database statistics here might cause heavy traffic between the web server and the MySQL server. I got this error when I tried to add a
I have an array looking like: array(480) { [0]=> array(2) { ["tag_id"]=> string(4) "6291" ["az"]=> int(5) } [
the option on the site "Default to customer billing address" is selected but the shipping address is still empty. I tried to fix it with code add_action( 'w
I am working on api, where I have the following models. Merchant -> hasMany -> Shops Shop -> hasMany -> Customers Each merchant will have api tok
I'm using the PHP SDK (v5.0) to log users into my site, using the basic code from Facebook's docs (I filled in and/or changed the necessary parts for my website
I added this to my functions.php file : add_filter ('woocommerce_add_to_cart_redirect', 'woo_redirect_to_checkout'); function woo_redirect_to_checkout() { $che
I am trying to find products that are on sale (including product variations) in addition to another meta_query of price under X. The wc_get_product_ids_on_sale(
I am working on encrypting a URL and converting a working script from PHP to ColdFusion. I have completed 95% of the work but I am stuck at this point after try
I'm using PhpSpreadSheet and I need to save the sheets contained in a workbook as individual CSV files. I've tried to use $reader->setLoadAllSheets(); but
I have a server and a domain name on GoDaddy. I want to create a backup for my files to be uploaded on Google Drive So that all my files and my database have
I have a string in the arabic language like: على احمد يوسف Now I need to cut this string an
I am running the PHP-Java bridge server (apache-tomcat). Sometimes I get an intermittent error. It's working when I restart the tomcat server from /opt/apache-t
I have a local PHP7 & Apache environment on my Mac. All my scripts from one site are showing this error at the end of the page: Warning: Unknown: Failed
I try again and again to test sending an email from localhost but I still cannot. I don't know anymore how to do it. I try search to find solution but I cannot
I have user and profile models with followers/following. What I want is to get the User data with the Profile data merged when calling Profile::followers. Now I
I want to pass the heatmapdata array for my Heatmap Layer from my PHP file. When running my code (below) I get the following exception: Uncaught TypeError: