Posts by Bruno Leyne • 160 points
11 posts
-
0
votes1
answer28
viewsA: How to pass Form via URL
The first part would be: Set States to store the value of each form input. After having every state, you would have to choose: Pass state to the component you want to use (like a post) Or pass via…
-
3
votes3
answers69
viewsA: Break query result in 2 lines
Split the query into two queries and merge with UNION select b.* from portal_sega_user a -- perfil inner join portal_sega_user b -- secretaria secundaria on b.USUARIO = a.SECRETARIAPRINCIPAL where…
-
0
votes2
answers154
viewsA: Why is the average score always "Nan"?
The Nan error means "not a number", that is, somewhere in your code is not being identified a number. Example: parseInt('ab') vai dar NaN parseInt('1') vai dar 1…
-
0
votes2
answers137
viewsA: Paging a Dynamic Selectbox in different php files
Well, from what I see in the prints, the problem is in the states. You have to pass the state parameter to get the $_GET['estadovl']. Your URL has to stay http://.../cities.php?…
-
0
votes1
answer84
viewsA: Grouping Lines from an Array - PHP
You will have to organize the array yourself, creating complete logic. The easiest and most cost-effective way for the bank would be to slowly search. Example: Select from team 01 with order by of…
-
1
votes1
answer331
viewsA: Return messages through exceptions
Exception should not be shown, they may even contain sensitive data that should not be read by ordinary users. But if you want to make them appear in the app is to do: try { ..codigo } catch…
-
1
votes1
answer149
viewsA: How to configure mysqli TIMEOUT in PHP?
MYSQLI_OPT_CONNNECT_TIMEOUT is a very dynamic configuration, it depends on the OS you are using, the PHP version, whether or not theadsafe, and several other things. For example it does not work…
-
1
votes1
answer363
viewsA: Import JSON to Mysql table
Mysql database is not ideal for this solution. What you can do with it is create a json type column (only mysql version 5.7 or higher if I am not mistaken) that serves to store a Json type object…
-
-7
votes2
answers273
viewsA: PHP: How is sending email via SMTP without the mail function?
Just like it’s done, just you downloading the library and reading source code. In the documentations they will only really tell you how to make it work and the functionalities. The mail function is…
-
0
votes1
answer38
viewsA: Error exporting to excel
It’s a little complicated to understand where the error is. One thing I noticed that is not making sense are the two ->get who are using. $alunosModalidade =…
-
3
votes2
answers77
viewsA: Doubt about switch
Operations must be done after you receive the values of the variables. case 1: printf("voce escolheu soma %d", a + b); break; Or case 1: soma = a + b; printf("voce escolheu soma %d", soma); break;…