Posts by André Walker • 321 points
14 posts
-
0
votes1
answer29
viewsA: how do I imprint in Crecente order one at each click
Just use the function shift, following the order of priorities, thus: listaDeSenhaPrioritaria.shift() || listaDeSenhaRapida.shift() || listaDeSenhaComum.shift() In case one of the arrays is empty it…
javascriptanswered André Walker 321 -
1
votes1
answer35
viewsA: Function inside map returning Undefined
if you’re returning undefined is actually pq is not defined. By its ternary operator. isExist is returning true and they are trying to access the content of item. otherwise I wouldn’t have undefined…
-
1
votes1
answer26
viewsA: How to take values only of checkboxes that are checked and those that were not checked do not return anything?
you must make some changes to your codes Replace chackbox with radiobutton, since only one field should be marked; use the same name for equivalent inputs tipoCliente and parCapitador replace the…
-
0
votes1
answer43
viewsA: How to make a Function, replace the value of a variable in JS?
You can assign declare a variable somador and use it to modify the value of money. then just modify the value of somador initially equal to 1, for the amount you want. Example: var txt =…
-
3
votes1
answer47
viewsA: Query for sum of total value
You need to group by id_pedido and use the SUM function to sum the fields that make up the total order value SELECT pe.id_pedido, C.NOME_CLIENTE, PE.DATA_PEDIDO, SUM(P.VALOR_PRODUTO * IP.QUANTIDADE)…
-
0
votes3
answers56
viewsA: Sum of columns
has two problems in its second loop, which sums the columns. You need to traverse between columns and not between rows. Change the order of the matrix references matriz[lin][col] for…
canswered André Walker 321 -
0
votes2
answers107
viewsA: How to save the Insert Radio Button with Bootstrap to the Mysql database
based on the example of Bootstrap you don’t need to use the same name and id that they used, just the same class form-check-input and form-check-input which is where the stylings are. The rest you…
-
1
votes1
answer61
viewsA: My contact form is coming to destination email as "Undefined"
UPDATED I found some errors in your form. The attribute is missing name in the inputs of your hmtl form. is missing the attribute action in your form with the route to the php file The attribute is…
-
0
votes2
answers53
viewsA: Select with LEFT JOIN and LIKE
I believe you are comparing the order table account id with the client table name. you need to do the JOIN by linking the proper relations of the tables and in the WHERE, you make the filter by the…
-
0
votes1
answer16
viewsA: I have a Modal Show , and I need to put in the same row 2 table data
You need to put the jailhouse ' ' (space) in your string, but you just gave space in your oq code does not affect at all the end result of the string. try this: $resultado .= '<dd…
-
0
votes1
answer27
viewsA: I’m trying to create a form using PHP with PDO database
you have a syntax error in your variable $sql of the stretch :celular: should only be :celular. Without the second ':'.
-
0
votes2
answers1136
viewsA: Install PHPMYADMIN on linux with php5.6
I resolved as follows, I installed the php5.6-mbstring package, so phpmyadmin stopped asking for the php-mbstring package that in turn needed php7.1-common, php7.1-mbstring and php7.1-xml packages.…
-
0
votes2
answers1136
viewsQ: Install PHPMYADMIN on linux with php5.6
Hello, I am configuring a machine with php5.6, I have installed and configured apache, php5.6 and mysql, now I want to install phpmyadmin, the problem is that when trying to install through apt it…
-
2
votes1
answer158
viewsQ: SQL - How to make multiple Inserts in a table with the result of a SELECT * of another table in a query
Hello, I would like to know how to make several Inserts in a table with the result of a SELECT of all id of another table table that are not as foreign key in the first table. I already have the…