Posts by Diêgo Correia de Andrade • 390 points
27 posts
-
0
votes1
answer37
viewsQ: Error in entering data
Good afternoon Guys, I am using Ajax to send data from my controller to my view and came across the following problem. I have this query: public function get() { $sql =…
-
1
votes1
answer163
viewsQ: Updating Mysql Table at a Certain Time
Good afternoon, My question is the following, I have locks in my application in PHP with Codeingniter, and I need to release users a few times. So, I select my user for 2(Supervisor) but I want that…
-
0
votes0
answers72
viewsQ: Infomasons do not come complete in Google Charts
Good afternoon Guys, I’m having two problems with that same code... One is when I just launch the day so I can catch the hours, it returns me the error Cannot read property 'getTime' of null when…
-
0
votes1
answer56
viewsA: Query SQL does not work correctly
I used the function group_start(); $sql = $this->db->select('hrStart, hrEnd, hdate, pacote') ->from('horas') ->group_start() ->where('hrStart<=',$horai)…
-
0
votes1
answer56
viewsQ: Query SQL does not work correctly
Good Afternoon, I’m trying to pull existing hour intervals on my bench. I’ll post the codes to be more explanatory Query: $user = "Diego"; $pack = "0013-001 B515 MCA ENGINEERING SUPPORT SYSTEM";…
-
0
votes1
answer136
viewsQ: Open daterangepicker calendar by icon
I would like to open this calendar below by clicking on the icon, but the value should go to my input. var date = new Date(); var primeiroDia = new Date(date.getFullYear(), date.getMonth(),…
-
1
votes1
answer220
viewsA: Dompdf does not load graphic from my html page
I used the function getImageURI(), because domPDf does not support the extension of graphics... So I transformed into image and managed to bring to PDF.
-
2
votes1
answer220
viewsQ: Dompdf does not load graphic from my html page
Good afternoon guys, I have a problem where my pdf does not load my html... Controller: function pdf() { $this->load->library('pdf'); $data = $this->input->post('input'); $file_name =…
-
0
votes0
answers26
viewsQ: Return multiple lines in PDF
Good afternoon, you guys! I have a question about creating tables in my domPDF. It turns out that I gave a GROUP BY in the SELECT of my bank, but only returns me the first line, I wanted to list all…
-
0
votes0
answers32
viewsQ: Error opening multiple calendars with Javascript!
Good afternoon guys, My question is that my table comes with comic information and connects in the view by an append, I added a calendar to them. append code: $("#table"+data[i].date+"").append(…
-
0
votes1
answer207
viewsA: How to Update in Two Table?
Try to use your syntax this way: UPDATE grupo g SET g.visibilidade = false, p.visibilidade = false FROM 'sua tabela' INNER JOIN produto p on g.id = p.idGrupo WHERE g.idTipo=10;…
-
3
votes2
answers55
viewsQ: Dropdown closes every click
Good morning Guys, I have a dropdown where I have several checkboxes contained in it. However when I click on any checkbox the dropdown selects only it and closes, I wanted to keep the dropdown open…
-
2
votes1
answer73
viewsQ: Error in Json passage
Good morning Guys, I have an error reading my json array when I call it in my ajax. My json: [{"id":"7","nome":"Anderson","sobrenome":"Dorea"},{"id":"6","nome":"Diego…
-
4
votes1
answer42
viewsQ: Table does not add last request
Good morning guys, I’ll get straight to the point... I have this Success from my json where validating the following function: for(i=0; data.length>i ;i++) { let cliente = data[i].item; let…
-
0
votes1
answer54
viewsA: Return data in a DIV (Codeigniter)
Good afternoon friend, see that in your foreach inside your view you call ->result(), try to put ->result() in your controller or model query (if you are using). Your controller: class…
-
0
votes2
answers1554
viewsQ: Add hours as Moment.Js
I have a table with the following fields: However I do not want to work with date and time together, I wonder if there is the possibility of Moment.js adding only the hours, without necessarily…
-
-3
votes5
answers12763
viewsA: PHP - Transforming object into array
Simple and practical... foreach($array as $element){ $result[$element[Clientedata]][] = $element; } $data[]; foreach($result as $key=>$value){ $data[] = ['Clientedata' => $key, 'item'…
-
2
votes1
answer135
viewsA: Create a POST with Jquery without form
Look, this is simple... Your HTML: <a href="1" class"submit1">Teste 1</a> <a href="2" class"submit2">Teste 2</a> <a href="3" class"submit3">Teste 3</a> JS…
jqueryanswered Diêgo Correia de Andrade 390 -
3
votes1
answer72
viewsQ: Capture Json Array with Javascript
Good morning Galera, I know that the statement of the question is similar to many others, but the problem becomes a little different. I have a controller where filter the information that comes from…
-
0
votes2
answers75
viewsQ: Moment.js When working with night dates for the morning
Today I came across a problem at the time of testing the differences of hours in the library of moment.js. It works perfectly, but when I add a night job until the next day it brings me a negative…
-
4
votes3
answers480
viewsA: How do I know and count the number of rows in an SQL query with Laravel?
beauty ? I found a little bit like the codeigniter that structure there... In this case, the sql used is num_rows... Look in the Laravel documentation to see how it applies. If it matches the…
-
0
votes1
answer88
viewsQ: Why does my Ajax return an HTML code instead of just returning the value? Codeigniter
Good morning Everybody, everything’s fine? I have been days trying to return a value from my view to my controller using codeigniter. But I don’t want refresh to happen on the page. So decide to use…
-
0
votes1
answer292
viewsA: Display username logged in with Codeigniter
Within your condition of if/else creates a variable for the SESSION which was set, and passes the variable in the $load, or in a very rustic way, in its View use $_SESSION['aluno']. function…
-
-1
votes1
answer159
viewsQ: Sending Ajax Information to Controller
Good morning guys, all beauty? I am making an application where my select will operate what will appear on my page. I am using Codeigniter, so the choice of select goes to a controller. I need my…
-
-1
votes2
answers55
viewsA: exbir text according to the output of the variable field
Look at that, you could make a structure if... I don’t know if that’s the case! <?php if( get_field( 'setor02' ) ) { echo ""; } else { echo '<li>Contratante: <strong> Secretaria de ';…
-
0
votes1
answer150
viewsQ: Capturing values from a Select to the Controller - Codeigniter
Good morning Galerinha, everything beautiful? I’m starting with the codeigniter and in the middle of that process I came across a question about the function select. Well, my question is to return…
-
1
votes1
answer124
viewsQ: Change Dropdown name to list item names
Good morning Guys! All beauty? I’m having a huge doubt in dropdown. I wanted to understand how to leave the name of mine dropdown with the list elements name when selected and when the page is…