Posts by José Luis • 171 points
18 posts
-
0
votes2
answers90
viewsQ: Taking PHP array values
Good afternoon. How do I pick up only an array that contains my condition? I’m redoing the question poís I still can’t, but I’m putting all my code. <?php include 'inc/cabecalho.php'; include…
-
-2
votes1
answer65
viewsQ: Jquery is adding the wrong values
Hello, when I select a treatment he has to take the amount in R$ and add, to in the end give a total, but if I select a wrong option and have to select another he is adding it, but should not,…
-
0
votes0
answers23
viewsQ: Update only the Divi I added via jquery
Good night. I am adding dynamic Ivs via jquery, and they have a select that is already selected according to the patient’s registration, but every time I add a new div all the other ones are…
-
1
votes1
answer15
viewsQ: Fordata picking up empty form
Good evening. I am trying to get the files via formData but an empty form is coming. Follows the codes: <form action="<?=base_url()?>clientes/addNewFile" id="form_addNewImage"…
-
0
votes2
answers75
viewsQ: List only if the other table does not have a dismissal
Good afternoon. I need to make a list of employees per year. For example. Active employees 2018, However I’m having problems, because in 2019 some were fired there not list the same, and use the…
-
0
votes1
answer39
viewsQ: Receiving and Manipulating array with ajax
Good evening, I have a very big question. And I search via ajax the treatments of a certain plan, and according to each type of specialty he has to add an html. To see better follow the codes: Ajax:…
-
0
votes1
answer31
viewsQ: How to register multiple
Good evening, I have a dynamic form that sends the following form: plano_nome: Unimed //nome do plano tipo_especializacao[]: protese // 1º tipo de especializaçao do plano plano_tratamento[]: Teste 1…
-
1
votes1
answer78
viewsQ: Automatic PDO and MYSQL listing
Good afternoon. I am trying to make the tables be automatically listed, without me having to name the field. But it’s showing errors. $conn = new PDO($dsn, $username, $password,…
-
2
votes2
answers242
viewsQ: Codeigniter database information array
For example, I am sending an id array [0] => 1, [1] => 3 and I want to show this in my html as a result. In the case that you search in the database with the first id save in the array and…
-
0
votes1
answer30
viewsQ: How to make a database information array in codeigniter
For example, I am sending an id array [0] => 1, [1] => 3 and I want to show this in my html as a result. In the case that you search in the database with the first id save in the array and…
-
0
votes2
answers320
viewsQ: Two foreach in a select
Good evening. How do I use foreach suns to check if the names are equal and so leave them with selected. Follows the returns of the variables: $risco_e = Array ( [0] => Postura Inadequada [1]…
-
0
votes1
answer28
viewsQ: Sum of values in Mysql
Good evening. I have to add the natures according to each sector of the company, but it is not going with Count. SQL: SELECT examefuncionario.exameFunc_Natureza, setor.setor_Nome FROM `funcionario`…
-
1
votes0
answers51
viewsQ: Edit using foreach (Edited)
Good evening. I have a form where I want to edit some information from a certain sector. Since the select Eps are a foreach of the bank, but I want the ones I want to edit to be selected, however,…
-
1
votes2
answers111
viewsQ: Converting JSON to HTML via AJAX into Codeigniter
How do I use the JSON return in HTML? Follow the codes. Ajax function: $(document).ready(function(){ $.ajax({ url:"<?=base_url('pedido/listar');?>", dataType: "html", success: function(data) {…
-
0
votes0
answers48
viewsQ: Error using Join and Count
Hello, the error now is that it is adding the Codsector. The values would be 6 and 3, but is coming 6 and 6. Follow photos and codes. SELECT *, COUNT(`funcionario`.`funcionario_CodSetor`) AS total…
-
1
votes3
answers323
viewsA: Group by age group
I did it. Thank you to everyone who gave me help. I’ll be leaving the code in case anyone needs it. SELECT funcionario_DataNac, funcionario_Nome, funcionario_Sexo, COUNT(funcionario_Sexo) AS sexo,…
-
0
votes3
answers323
viewsQ: Group by age group
Good evening, I have to group and count how many employees I have with sex and age group. Follow the html code <div class="card" style="margin-top: 5%;"> <div class="card-header…
-
7
votes2
answers1019
viewsQ: How to take an attribute of multiple "tags" with same ID
Hello, when clicking one of the 3 options in "HTML" that is in the code below, I want the function in "JS" emits an "Alert" with the "idPost" in which it was clicked. EX: When I click on the "PHP"…
javascriptasked José Luis 171