Questions tagged as 'codeigniter'

1
answer

Codeigniter know if the insert worked?

Using codeigniter how can I know if the insert into actually worked? $novo_usuario=$this->db->query("INSERT INTO usuario (nome, email) VALUES ('pessoa','[email protected]')"); Through the variable $novo_usuario how can I be sure...
asked by 09.02.2015 / 20:15
1
answer

How to leave the date with Brazilian standard in Codeigniter 3?

I'm developing an application that takes the registration date of the registry. But is getting the date with American standard YYYY / mm / dd how do I correct this in codeigniter? Here is an example of my code. minha página html <d...
asked by 05.12.2018 / 20:33
1
answer

How to catch mysql (duplicate entry) error and display a message on screen for the user, using codeigniter?

How to catch the error of mysql (duplicate entry) and display a message on the screen to the user, using codeigniter?    Error Number: 1062       Duplicate entry '123456' for key 'process'       INSERT INTO processo ( nprocesso...
asked by 02.05.2018 / 21:53
2
answers

Generate a search url?

I need to get the url to search for a specific term on a website built using CodeIgniter. But when I type the term, the url changes only to: nomedosite.com.br/busca I tried to add ?q=arquitetura but it did not work.     
asked by 02.07.2014 / 14:05
3
answers

Display array value in php

I am putting values in a array and need to display those values on the side of the titles in the th of a table . I do not want to use a loop to go through the array, I want to access the value by the index. Here is my f...
asked by 19.10.2017 / 14:53
1
answer

Multiple codeigniter database connections

I've been investigating the use of multiple databases with CodeIgniter. If I know what the databases are ahead of time, I can set the information in the configuration file and then call the database group I need. In my situation, however, I n...
asked by 25.07.2017 / 17:13
1
answer

Form validation of CodeIgniter does not allow accents and other "br" characters

I'm using the alpha_numeric_spaces rule to validate letters and numbers with space, but when I use any special characters or letters like "ç", validation does not pass, is there any way around this or only by creating a special rule? Ex:...
asked by 20.07.2017 / 22:37
1
answer

Upload / download files with Codeigniter

Talk, how are you? I am developing a small web system at which price to upload budgets and later its download, I am following a tutorial that I found but I am with an error that I can not solve: When I select the file and click process, I'm d...
asked by 28.03.2017 / 21:53
1
answer

CLASS="active" according to a selected tab

Hello I intend to create a notepad, where a title and a note will be inserted. For each note entered, a tab will be created. I want to click on the tab and load the title and note into an input and text area automatically. To recover...
asked by 15.12.2016 / 16:25
1
answer

How to retrieve only 1 URL value with CodeIgniter?

I'm passing two parameters link public function votar($id) { echo $id; die; } And it returns me 4-slug-of-something. I just wanted to retrieve the ID but displaying the two parameters in the url, how do I do that? My route lo...
asked by 24.01.2017 / 14:49