I’m currently making a shopping website and I need to be able to pass two variables to the next page, the code may be badly written because I’m new to this, but I’m trying to pass the number from the drop-down menu and the “row[‘pid’]” to another page. As shown below …
WordPress taxonomy last child separated by “en” instead of comma
I’m trying to create a shortcode that outputs my custom taxonomies, separated by a comma, but i want the last comma to be “en” instead of a comma. So like this: taxonomy, taxonomy, taxonomy en taxonomy So far i have this: Answer As I dont have an example of the $terms or $entry_terms variabl…
How do I redirect the user to the last active page when they login due to session time out using php? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago. Improve this question I have built a little software using Vanilla PHP, I have implemented autom…
Split VAT into segments based on Country code
What is the best wat to split any VAT number into segments? First part is the country code, is always 2 alphanumeric. Second is the remaining number. For example: NL820471616B01 should be split to NL and 820471616B01 BE0824148721 should be split to BE and 0824148721 ATU12345678 should be split to AT and U1234…
How to redirect PHP page on MySQL database connection failure
Using MySQLi connection method I am trying to redirect page instead of printing out the error message trying to test this out I change the localhost to localhostszzz but I am getting error message of Warning: mysqli::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /..…
Link inside form referring to the action of the form instead of the link
I am trying to make the link inside the form go to signup2.php. Instead it is going to loginprocess.php. Is there any way to do this by keeping the signup link inside the form? <form action = &…
How do I insert meta data to my customers in woocommerce using an object array?
Hi I am trying to use the woocommerce API and do post requests of customer data and adding an internal customer ID. Here is my data I have tried to pass this data through a post request Below is the response when I commented out the meta data. But as you can see there is a meta data array. But
PHP – Unidentified index in error log even though using isset to check for session variable
I am running the following check in PHP (in a Slim middleware) to make sure that a certain session variable exists: However, my error log is swamped with the following: What can I do to have this not show as an error? I found a solution here: PHP: Notice Undefined index even using isset but my case is differe…
How to JOIN MySQL tables with specific ID of each table with PHP
I don’t know how to join tables and fetch informations from each of them. I have clients, who has made reservations and when I click on specific client I need not only information about him from clients table, but also need information related to him by id from reservations table. This is my ER diagram …
Show the amount of files uploaded at the right of an input
i am creating a form with a input=file, my problem is that when i added CSS to this, the number of files updated dissapear, i know that is because i put display=none in the CSS, but i need them to appear, or people won’t know the file uploaded correctly, is there a way to make this? i prefer without uss…