Posts by Ana • 441 points
19 posts
-
3
votes2
answers373
viewsQ: Java square (geometric figure)
I have an exercise that is to form a square with the number we are given. Here’s the code I made: int altura=5; int largura=5; for(int i=0; i<altura; i++) { for (int j=0; j<largura; j++) {…
-
1
votes1
answer51
viewsQ: Return to the JS slide
Good morning! I apologize for the title but I didn’t find any better... Well I have a page that shows the content in "slides", or at the beginning shows the slide 1, and by pressing the next arrow…
-
0
votes1
answer271
viewsQ: Show and hide <table> in Javascript with arrows
Good morning! For example I have a page with the content in a table, in a <td> the text appears and in the other <td>the image. And by clicking the next arrow you should show the…
-
1
votes1
answer62
viewsQ: Show all products of a Mysql order
Good morning! I created a shop online , this same one consists of a shopping cart. After the user has chosen all the products, a "payment.php" page will appear, before that he inserts it into the…
-
1
votes3
answers255
viewsQ: Calculate percentage between two MYSQL dates
Good morning! I wanted to calculate the percentage of how many times a classification appears between two dates, the classifications are distributed in "red", "yellow" and "green". This is the table…
-
0
votes1
answer36
viewsQ: Delete two ID’s from different tables in the same query
Good afternoon! I have two tables: 1st question and second answer, and question_id is the key that allows connecting the two tables, being the foreign key in the "answer" table of the "question…
-
2
votes1
answer231
viewsQ: Avoid double clicking and redirect to another page
Good afternoon! I made a function to prevent the user from pressing the same button twice, this part works perfectly. global.js $('.form-disable').on('submit', function(){ var self = $(this), button…
-
1
votes1
answer113
viewsQ: Redirect to next page after downtime
Good morning! I’m creating a rating system, consisting of choose the option, the user is redirecting to another page to leave a comment, and of followed showcase another page to thank, and it all…
-
2
votes1
answer368
viewsQ: Change pie colors Chart php
Good afternoon! I’m creating a circular graph, the data I search from the database. However I do not know how to change the colors of the circular graphic sectors, to make it clearer I will show…
-
2
votes1
answer702
viewsQ: Pass two variables in the javascript url
I have a website that has 5 different languages and when choosing a language the page text changes! For this I made a function: <script type="text/javascript"> function submitForm() { var…
-
1
votes2
answers565
viewsQ: Add multiple products to a single mysql order
Good afternoon I have two tables encomenda and prod_encomenda. My goal is to assign to one order several products. Both contain the id_encomenda, so I guess the structure of the tables is well done!…
-
1
votes1
answer641
views -
3
votes2
answers351
views -
2
votes4
answers209
views -
0
votes1
answer42
viewsA: Problem inserting special character in Mysql
Try to insert this code, at the end, into your file that allows validating the database: ... resto do código ... mysql_query("SET NAMES 'utf8'"); mysql_query('SET character_set_connection=utf8');…
-
2
votes1
answer117
viewsQ: Pass variable via GET without action
I plan to pass a variable to another page, I know I can use the method GET, meanwhile if here <form method="GET" action="comentario.php"> is comentario.php it does not execute the commands to…
-
3
votes1
answer177
viewsQ: How to insert the button pressed in the database
In my code I have 3 buttons, which serve for the user to classify the service: <input type="submit" name="verde" class="verde" value=""> <input type="submit" name="amarelo" class="amarelo"…
-
4
votes1
answer357
viewsQ: Set language in index.php
I’m trying to develop a very simple system, contains 5 different languages, this part works perfectly, the problem is that when I first enter the site, in this case the file is the index.php, it…
-
1
votes1
answer98
viewsQ: How to display certain products when clicking a link to another page?
I’m having a problem, no matter how hard I try, I can’t fix it.. The problem is in: <form action="" method="POST"> <div class="containercompras"> <div class="box"> <div…