Questions tagged as 'codeigniter'

0
answers

PHP Codeigniter Parameter Encoding Problem

I have an autocomplete that connects via ajax, but when I typed accented letters that are even in the database, the query did not return anything. Both the bank php.ini and the settings of the codeigniter ( database.php , config....
asked by 23.09.2016 / 17:08
0
answers

message undefined offset 0 in codeigniter

I'm having a problem figuring out the data in a view with the CodeIgniter framework. Model: // Metodo que busca os dados de um cliente especifico public function getCliente($id){ $this->db->select('*'); $this->db->from...
asked by 04.10.2016 / 02:50
0
answers

Error in database: Error Number: 1064 in codeigniter

is giving the following error    Error Number: 1048       Column 'scale' can not be null       INSERT INTO teste ( escala , id ) VALUES (NULL, NULL)       Filename: C: /xampp/htdocs/SAO/system/database/DB_driver.php   ...
asked by 04.09.2016 / 16:49
1
answer

How do I make a variable to become an object?

Model: public function gettoken() { $token = $this->db->get('token'); return $token->result(); Controller $this->load->model('Mod_login'); $get = $this->Mode_login->gettoken(); echo $get->datta; So I wan...
asked by 03.09.2016 / 03:59
1
answer

Send email PHP + CodeIgniter

People, I made several examples, being they of books or the internet and all return the following message when I execute the function to send the email: Could you please explain what this SMTP is? And what should I do to work?...
asked by 10.09.2016 / 03:02
0
answers

horizontal mPDF - PHP

I need to generate a report PDF, with the following specifications: $this->load->helper('mpdf'); $html = $this->load->view('relatorio/interessados_relatorio_impressao', $data=NULL, true); pdf_create($html, 'interessados_relatorio_'...
asked by 17.08.2016 / 20:30
1
answer

Check array braces

Next, I have a saved array value in the $chaves variable as in the example below: array(2) { [0] => array(1) { ["chave"] => string(1) "1" } [1] => array(1) { ["chave"] => string(1) "3" } } I made a...
asked by 18.07.2016 / 21:46
2
answers

php register with angular js

Hello I have the following controller in the angle: myApp.controller('cadastrarClienteController', function($scope, $http){ $scope.cadastrarCliente = function () { $cliente = { CliNome: $scope.cli_nome, CliTelefone: $scope.cli_telef...
asked by 12.07.2016 / 02:39
1
answer

Customizing data from a session array in codeigniter

I'm trying to create an array with the data I retrieve from the database, my code is like this $usuario = $this->input->post("usuario"); $senha = $this->input->post("senha"); $this->db->select('id','usuario','senha','tipo');...
asked by 11.07.2016 / 22:14
2
answers

Load value into input text after selecting value in select Codeigniter

I want to load a value into an input text after selecting a value in a select. I'm loading the normal select. I want to load the input text using javascript. In my model I make a comparison with the id. The data is in the same table. Java Scr...
asked by 17.07.2016 / 01:54