Posts by Mario Caeiro • 139 points
8 posts
-
0
votes1
answer76
viewsQ: Return of Incorrect Form
Hello! From a csv file, because after doing submit On the form do I get the return with the correct values? If the $_POST countries are the same $registo[1], wanted to return the $registration[0]…
-
3
votes2
answers96
viewsQ: Forms and Files
I’m making a form where I basically access a file .txt in the CSV format containing certain articles and their prices (e.g., cheese,2.10). The program presents the list in a table, and below appear…
-
3
votes2
answers5474
viewsQ: Calculate day difference between two dates [PHP]
Good afternoon to you all! I did some research before asking the question, but I did not get an answer to my question in any of them. I need help in getting the following code to receive both dates…
-
0
votes2
answers58
viewsQ: Shopping list within function
I’m trying to solve an exercise I’m doing in PHP (I’m a beginner) but I can’t get the code to work, the following message is displayed: "Notice: Undefined variable: in C products: xampp htdocs…
-
1
votes3
answers600
viewsQ: Creation of Array within Function
I’m trying to do an exercise where I have to create a array within a function, and the same be accessed through an external code (example: ...php? parents=uk and show United Kingdom - London). The…
-
2
votes2
answers66
viewsQ: Search something in a list and say whether it exists or not - Display Value, and amount
Good afternoon, what is the easiest way to make a list in which it contains several items, for example meat, fish, bread etc, and from the variable $_GET know if the product exists or not ? I tried…
-
0
votes2
answers728
viewsQ: Swap elseif code for switch case
I’m having trouble modifying a code I made in else if for switch case. I’m not getting the code to work, he gets values and operation by $_GET and does the selected operation: I leave the code here:…
-
-1
votes1
answer66
viewsQ: Perform external value calculations ($_GET)
Good afternoon, I’m new in php, and I’m doing some exercises, but I’m not able to do an exercise that ask to do sum, division, multiplication or subtraction depending on the values entered in $_GET,…