Posts by Wagner Fillio • 1,328 points
143 posts
-
1
votes1
answer681
viewsQ: Get data from multiple codeigniter tables (Multidimensional Array)?
How to get data from multiple tables at once? I need to recover the data of the following object (debtor). There are several tables where the main table is tbl_devedor. After that, there are others,…
-
1
votes2
answers190
viewsQ: Create object and send by ajax - Codeigniter
Hello, Can help me create an object with this code and send by ajax. console.log("cadastro-assessoria trabalhando"); //Variáveis $(document).ready(function() {…
-
2
votes1
answer1008
viewsQ: Access array elements from JSON
I’m retrieving an object and turning this object into array. Now, I need to access some elements of this array to fill in these data in the controller (Codeigniter), before returning it as JSON. To…
phpasked Wagner Fillio 1,328 -
0
votes2
answers243
viewsQ: Mark checkbox if value equals 1
Hello! Through the function below: success: function( tbl_permissao ) { obj_permissao = tbl_permissao; var permissoes = phpUnserialize(obj_permissao.permissoes); console.log(permissoes);…
-
0
votes1
answer48
viewsA: Unserialize Codeigniter Data - Ajax?
Hello! I would like to inform you that I have resolved the following: I used the php-unserialize-js plugin. And converted the string into an object: var permissoes =…
-
0
votes1
answer48
viewsQ: Unserialize Codeigniter Data - Ajax?
Through the object obj_form, i display in the form the database data: //Objeto do formulário function obj_form() { $('[name="id"]').val(obj_permissao.id);…
-
0
votes1
answer3618
viewsQ: object inside javascript object
Can you give me a basic example of how it’s done in the image below? I need to nest the information obtained through the function obter_conta_me across of this code(click here), before the line…
javascriptasked Wagner Fillio 1,328 -
0
votes1
answer346
viewsA: Dynamic Combobox Ajax Codegniter
Good morning! I solved it this way: Ajax function obter_carteira_ajax(id) { var id = id; $("#carteira :gt(0)").remove(); if(id > 0) { $.ajax({ type:'GET', url:'boleto/buscar_carteira/' + id,…
-
0
votes1
answer346
viewsQ: Dynamic Combobox Ajax Codegniter
Hello! I’ve already looked this question and won’t answer me. I have a select called Bank, as below and brings me the result OK: <select id="banco" class="banco form-control" name="sel_banco_id"…
-
0
votes2
answers627
viewsQ: criticise error when CEP is invalid (via CEP )
Hello! I am using the code below to get address through the CEP informed. It works, but when typing an invalid zip code or 0000000, I get the return {"erro":true}. How can I turn this return into an…
-
0
votes0
answers224
viewsQ: Security request AJAX
Know how I can get more security when sending data via AJAX? As the data will be sent by the customer, I want to avoid fraud, etc.. Today I can the following function: console.log("funcoes…
-
1
votes1
answer294
viewsQ: Helper-menu and active submenu (codeigniter)
Hello! I’m using the menu helper to include class active in the menus of the site. Helper Menu: <?php defined('BASEPATH') OR exit('No direct script access allowed');…
-
1
votes1
answer795
viewsQ: SELECT DINAMICO CODEIGNITER - AJAX
Hello! I have the following tables: tbl_lancamento tbl_category tbl_burden Whereas in tbl_lacamento there is a field (id_categoria) that receives the ids of tbl_categoria and tbl_categoria receives…
-
0
votes4
answers1937
viewsA: View data format en dd/mm/yyyy
Solved with Meajudasilvio’s answer var dateStr = tbl_lancamento.dt_vencimento; var dateSplit = dateStr.split("-"); var dateFormated = dateSplit[2] + "/" + dateSplit[1] + "/" + dateSplit[0];…
-
3
votes4
answers1937
viewsQ: View data format en dd/mm/yyyy
Good afternoon! I’m using the plugin air-datepicker for dates. When I click on the field, I see the format en dd/mm/yyyy. Now, therefore, I want this date to be displayed in the same dd/mm/yyyy…
-
0
votes1
answer378
viewsQ: adding controller foreach field to view
Hello! I have the following function of the controller. public function lancamento_listar() { $lista = $this->lancamento->obter_dados(); $data = array(); $no = $_POST['start']; foreach ($lista…
-
0
votes1
answer4533
viewsQ: Form within Form
Good morning! I already checked the link, Form within Form, but that’s not what I’m looking for. I need to know if one form inside the other with two buttons and two distinct actions works. Example:…
-
0
votes0
answers67
viewsQ: Componete Popover - Submit does not work
Hello! I have the following Pover, but when I start Submit, nothing happens. Can you help me ? $(function() { $('a[rel=popover]').popover({ html: 'true', title: 'Título popover', placement: 'right',…
-
0
votes0
answers857
viewsQ: Recover Codeigniter database value - Mysql
In a user form, I upload information such as username, password and permissions. But now I’ve included it in the permissoes a field called grupo. And I included it in the usuarios this field, so…
-
0
votes1
answer548
viewsQ: Display a foreach item only once (if this item is within the if condition)
Hello! For a chat, I want to display the date of the message only once, this being the first message only. Example: ONTEM Mensagem 1 Mensagem 2 Mensagem 3 HOJE Mensagem 1 Mensagem 2 Mensagem 3…
-
0
votes1
answer185
viewsA: Positioning Codeigniter Chat Messages
Hello, Resolved as follows: <div class="direct-chat-messages" style="height: 325px;"> <?php //Se houver comentários, imprime os comentários if(count($historico) > 0) { foreach…
-
0
votes1
answer185
viewsQ: Positioning Codeigniter Chat Messages
Hello, I’m developing a messaging app (chat) and it’s almost finished and working. It turns out that the messages are all aligned from left to right, regardless of the message user. Example: User 1…
-
4
votes1
answer436
viewsQ: Destroy(Logout) Session_id Codeigniter
Through the code below I recover all users logged in to the system and display them in a table. <?php $dados = array( 'session_id', 'ip_address', 'last_activity', 'user_data' );…
-
1
votes1
answer566
viewsQ: View fullcalendar codeigniter events
Hello! I want to retrieve the events from the database and display them in the calendar. Can you help me to do this? So far I have the following codes: Model: Public function obter_noticias() { $sql…
-
0
votes1
answer855
viewsQ: Search field/data filter
Hello, I’m developing a field of data research. And this, is working very well so far; but I would like to add some query parameters to this field. As it is today (search possibilities): Data…
-
1
votes1
answer78
viewsQ: Send values to the database
You can help me send the values of the fields to the database. For the viewer, I’m using the following code: Page code: <?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>…
-
0
votes1
answer88
viewsA: Update table without losing information
Controller public function adicionar() { $data['nome'] = $this->input->post('nome'); if ($this->Usuarios_model->adicionar('usuarios', $data)) { $id_usuarios =…
-
1
votes1
answer773
viewsQ: Passing Correct Form Ubmit Parameters
Hello, I’m trying to pass some parameters to the controller, but I’m not getting it. The following Code has been changed to load the contents of the tab clicked and display it in an input and…
-
2
votes1
answer468
viewsA: CLASS="active" according to a selected tab
Personal solved; As follows: <?php $classActive = ""; $divMenu = ""; $divPanel = ""; $this->db->order_by('id', 'asc'); $this->db->where('usuario_id',…
-
2
votes1
answer468
viewsQ: CLASS="active" according to a selected tab
Hello! I intend to create a notepad where a heading and a note will be inserted. For each note inserted, a tab will be created. I want to click on the tab and load the title and note into an input…
-
0
votes1
answer337
viewsQ: Pagination - Codeigniter
Hello, I have a problem paging, the links of the pagination are displayed normally, but regardless of the page I go, the results are always the same, IE, does not change. Below is the Controller…
-
0
votes1
answer623
viewsQ: UPDATE in another table when updating a record does not work - CODEIGNITER - MYSQL
Hello, the code to update a record to another table does not work. I need to update the table vendas when saving a record from the table lancamentos. on the table lancamentos there is the column…
-
0
votes1
answer1710
viewsQ: Global variable - codeigniter
Hello! I want to display a die($variable) on a footer. The way it is below, it works and the variable $operador is displayed correctly on all options/screens I click. <?php $operador =…
-
1
votes3
answers1100
viewsA: Change the iframe (embed bootstrap) according to the navigation bar button
See this example helps you: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="keywords" content="jquery,ui,easy,easyui,web">…
-
0
votes3
answers536
viewsQ: Retrieve from the database the "data-*value" attribute of a field through jquery
How to recover a field’s "date" attribute from the database via jquery. Today the system recovers the value(value) of the field, but now I also need to recover the date value of this field, as you…
-
7
votes2
answers2239
viewsQ: Enable and Disable Save Button
I am developing a Revenue/Expenditure launch system and it works according to what I initially need. Lawsuits. Revenue Launch, add the Revenue value to the account table. Example: Opening account…
-
4
votes2
answers420
viewsQ: Store New Value by Updating Old Value
Can someone help me with a PHP and MYSQL function? Today I have a view for Expense and Revenue Launch. I also have a box, which, when I launch an Revenue,the value is added to the box and when I set…
-
0
votes2
answers526
viewsQ: Update balance with revenue and expense
I have an application, where there is an option to register an ACCOUNT with initial balance equal to zero and two options to register REVENUE and EXPENSES. And when I register an IRS, the balance of…
-
1
votes1
answer82
viewsQ: Getresponse - Httpurlconnection
I’m trying to make a comeback getResponse. I can see the return with the System.out.println, but I can’t get the same feedback within the application. HttpURLConnection conexao =…
javaasked Wagner Fillio 1,328 -
3
votes1
answer325
viewsQ: Use more than one variable in the same sentence(replace)
In a field I need to replace two words with any other two. Example: Mr(a) v1, the value of your invoice is real v2. As it should be: Mr(a) Joao, the value of your invoice is 10,00 real. So I have…
javaasked Wagner Fillio 1,328 -
1
votes1
answer1100
viewsQ: Load and save PHP/ MYSQL image
This is a form that contains fields like CPF, RG... and a profile photo. I can add normally, but I can’t edit. If I change any data other than the photo, example: CPF, works perfectly. But if I want…
-
1
votes2
answers118
viewsQ: Save form data without obligation to update image
I have a registration form and this form has a profile image of the registered user. The insert and update image are working perfectly. The problem is when I update any data other than the image,…
-
0
votes1
answer1596
viewsQ: How to display photo in modal
I have a system made in Codeigniter. I have in the system a field to add collaborators with photo(avatar), I can register, edit and display the information in a table. I created a button to call a…