Posts by Robson dos Reis • 22 points
5 posts
-
0
votes1
answer45
viewsA: fill an array with Indice
You can create a new array and insert the key of the first one with the value of the second: $lista_geral= array( 0|7897748704559 =>'', 0|7897748704009 =>'', 0|7897748705501 =>'',…
-
-1
votes2
answers223
viewsA: Cookie and sharing between subdomains?
Yes, there is sharing if the domain is specified when generating the cookie. For example, if the domain is specified as "mysite.com", it will include all subdomains ("api.mysite.com"). If not…
-
0
votes2
answers57
viewsA: Start the length count from 1
For an empty string, length is 0. When you call the "counter" function and there is no character inserted, you must return 0, unless you have a character not visible in the field, such as a space.…
-
0
votes1
answer36
viewsA: Enable "Submit" button only when data change
If the need is to check that the user has only changed some field (even if it puts the same value), add the "disabled" attribute to the "button" and add the following Javascript code: $("input,…
-
0
votes1
answer30
viewsA: Problem checking a query in PHP
You can return the results with the fetchObject() or fetchAll() and thus validate: $linha_qnt = $seleciona_qnt->fetchObject(); if ($linha_qnt->forn_nome != 0) { echo "O fornecedor…
phpanswered Robson dos Reis 22