Skip to content

How do I pass these variables to another php file

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 …

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 /..…

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…