Posts by Thavia Farias • 360 points
17 posts
-
0
votes1
answer728
viewsA: Mysql and PHP Dynamic Form - Codeinigter
You need to have at least two tables. In the first you put the id and the title of the quiz. In the second quiz you put the questions and the id of the quiz you just created in table 1. Or you can…
-
2
votes1
answer126
viewsA: Angularjs, after select, save to another table
You must save the return in $Scope and use ng-model in inputs. For example: $scope.resultado = obj; // obj que retornou sua função buscarCep(); < input name="endereco" class="form-control"…
angularjsanswered Thavia Farias 360 -
1
votes2
answers1915
viewsA: How to use Directive templateUrl with external controller?
You can inject controllers into your directive and then use angular.extend to bring $Scope to your directive, for example: app.controller('ctrlB', function($scope) { $scope.bar = 'foo'; });…
-
3
votes1
answer622
viewsA: How do you turn a javascript function into an angular "function"?
$scope.checkConnection = function () { ... } in your Voce view you can access the function by starting by pressing or clicking a button, for example: <div init="checkConnection()"></div>…
-
2
votes1
answer572
viewsA: $injector:modulerr
It can be two things. 1: The function checkConnection(); is not defined and therefore breaks the rest of javascript. 2: failed to insert the contact file in your html.
-
2
votes2
answers302
viewsA: Media in lists with dictionaries
I made the code in Angularjs for you to follow the logic. Is here: jsFiddle angular.module('dicionario', []) .controller('ctrl', function($scope, $http) { $scope.lista1 = [{ 'idade': 8, 'especie':…
pythonanswered Thavia Farias 360 -
-2
votes1
answer81
viewsA: An application for several databases!
You need a general database where you store user information, for example user, email, password, bank In the database column you check which is the user’s database and then make the connection to…
-
1
votes1
answer67
viewsA: Roles in Angular JS
You can create directives and insert them into your home.html In the controller aboutController Voce captures session data, checks whether the user is logged in and places the information in the…
-
-1
votes4
answers578
viewsA: Problems with Input Angularjs
No need to change the type of your input. Change your code of: <tr ng-repeat='ax in itens'> for: <tr ng-repeat='ax in itens' ng-init="txtQuantidade= ax.quantidade">…
-
2
votes1
answer71
viewsA: SQL query returns
In your database connection, you need to set the charset. $link = mysql_connect('localhost', 'user', 'password'); mysql_set_charset('utf8',$link); And also make sure your base is at utf-8 ALTER…
-
1
votes2
answers480
viewsA: Check if Array is empty Ng-Switch
Use <div ng-switch-default> Alguma coisa... </div>
angularjsanswered Thavia Farias 360 -
2
votes1
answer1730
viewsA: Angularjs Argument 'controller' is not a Function, got Undefined
You should include your controller files after setting the app, not before. <script src="lib/angular/angular.js"></script> <script…
-
2
votes2
answers3510
viewsA: send email to codigneter using SMTP GMAIL LOCALHOST
Google has gone on to reject sending emails using an unauthorized application. If you take a look at your Gmail inbox, you will get a Google email stating that a login tactic has been blocked.…
codeigniteranswered Thavia Farias 360 -
2
votes1
answer164
viewsA: How to update the database to several codeigniter-related tables
Update one at a time. $this->db->update('pages',$dados,$condicao); $this->db->update('customers',$dados,$condicao);
codeigniteranswered Thavia Farias 360 -
0
votes2
answers362
viewsA: model and controller in codeigniter for making Insert in Firebird using Generator
Assuming you have an 'id' column in your bd. Add another argument to your function: public function inserir($tabela, $dados_banco ,$key ){ $query = $this->get($table); $row =…
-
1
votes1
answer444
viewsA: Treat session by codeigniter model or controller
Looks like you didn’t start the session. $this->load->library('session'); Try this, to debug what is saved in the session, do the print_r of $this->session->all_userdata()…
-
1
votes1
answer757
viewsA: How to fetch values only from the checkbox selected in codeigniter
In your view: <input type="checkbox" class="flat-red" name="<?php echo $row->tag ?>" value="<?php echo $row->idApoio ?>"/> <?php echo $row->descricao; ?> Change to…