Posts by LauBF • 121 points
10 posts
-
0
votes2
answers729
viewsA: Value of input type null
I’m not sure I understand your question. Where did you put that echo? If it’s in the form, your expression can look like this: <form method="post" action="teste.php?pag=<?php echo $pag;…
-
0
votes1
answer222
viewsQ: Group, assign, and sort values from a multidimensional array in PHP
Hello, everyone. I have the following multidimensional array in PHP: Array ( [0] => Array ( [0] => teste0 [1] => 1 ) [1] => Array ( [0] => teste1 [1] => 1 ) [2] => Array ( [0]…
-
0
votes1
answer190
viewsQ: How to transform a JSON that contains an object array into an object list?
Good evening. I have the following JSON: { "_id": { "$oid": "3432fa43242" }, "posts": [{ "thread": { "uuid": "2911da", "url": "http://www.google.com", "site_full": "opiniaoenoticia.com.br", "site":…
-
0
votes1
answer524
views -
1
votes2
answers501
viewsQ: Text alignment problem within select and input
I’m having trouble defining the style of inputs and selects. The text is misaligned/cut, according to the figures below (first image in Chrome and the second image in IE, in Mozilla is equal to…
-
2
votes2
answers2126
viewsQ: how to select only 1 record of each id
After making an Inner Join between user (1) and image (N) tables, the following table is returned (the id refers to the user id and the filename to the image file): | id | filename | 12 | img1.png |…
-
1
votes2
answers761
viewsQ: Dynamic name input name
I want to create a form with a variable number of inputs, according to the amount of data coming from a BD and assign them to the "name" unique names. Then I need to submit this form and recover the…
-
2
votes1
answer3358
viewsQ: Query in relationship table N:N
How to display all projects that have a specific advisor? The relationship between Supervisor and Project is N:N, therefore contains the table Projeto_has_Orientador as relationship table. Tables:…
-
2
votes1
answer31
viewsQ: How to concatenate strings with values from a database?
I want to concatenate values from different records, for example, I have the table below: | id | value | | 1 | valor1 | | 2 | valor2 | | 3 | Valor3 | To show the following result: value1, value2,…
-
3
votes0
answers582
viewsQ: How to make a form with the number of variable fields and insert this data into the database?
Hello. I want to create a CRUD that does word management and its synonyms. A word has several synonyms (1:N). I would like a solution to dynamically include the inputs, according to the demand of…