Questions tagged as 'codeigniter'

1
answer

Error no count ()

I need to put a website in the air (it was not me who made the site), and I need to adjust some things in it. I'm facing a problem in a dynamic menu: when I'm on the home page it's ok, but if I browse the site the following error occurs:  ...
asked by 18.09.2018 / 13:41
1
answer

Positioning elements on the screen

How to position the elements without breaking I have a screen with some inputs , I'm using bootstrap and defining the sizes of the fields, but they are still broken as in the following image. IneedthemtobestraightandwithLabel...
asked by 06.11.2018 / 18:46
2
answers

Help with an associative table of friends

I have a friends table, which has the following composition:    friends_id (relationship id)       id_user (id of the user who submitted the friend request)       id_user_to (id of the user who received the friend request)       id_status...
asked by 04.10.2018 / 19:53
1
answer

QUERY CODEIGNITER - INNER JOIN

Hello I am using dataTable in codeigniter and doing a query through the search Looking at the query below, it works fine when it comes to query within the same table tb_pagamento . Now I want to query the name of the...
asked by 05.07.2018 / 17:42
1
answer

How to display data from three tables in a view?

I have three tables: Process, Progress and Costs: how do I display the data of the three in a View, and the Progress and Cost tables have as the foreign key the primary key of Process? I made a foreach for each table, but it did not work, it...
asked by 14.05.2018 / 05:21
1
answer

How to sort field of type VARCHAR in CodeIgniter

How to sort fields of type VARCHAR in class model of CodeIgniter? You can already do this in pure SQL like this: order by strtodate(dtdespesa, '%d-%m-%Y') desc; However the version of CodeIgniter I'm using, 3.1.6, does not...
asked by 11.05.2018 / 22:37
2
answers

Redirect to another application Codeigniter

I have a codeignter with 3 applications, inside each the default welcome view, the structure looks something like this: www applications site site2 site3 system I need to figure out how to redirect to site2 for example fr...
asked by 04.06.2018 / 16:46
1
answer

Query string pagination with codeigniter

How can I do paging with query string in CodeIgniter? I'm trying to search the documentation but I have not found it! I have the following scenario: http://localhost/meusite/procurar/s?search_state=RJ&search_city=Rio+de+Janeiro If it wa...
asked by 08.05.2018 / 18:09
1
answer

Url Amigavel Codeigniter

In Codeigniter there is a configuration file called router.php where we set up friendly urls. In the url of the site I'm making I need to leave 2 dynamic parameters like this: www.siteexemplo.com.br/parm1/parm2 I configured the routes...
asked by 04.05.2018 / 15:34
2
answers

Error trying to connect to SQL Server with CodeIgniter and PHP 7

Good afternoon, I started having problems with my CI when upgrading my development environment (windows + xammp) and production (ubuntu + apache) to the latest version of PHP 7.1.10. When trying to connect to Microsoft SQL Server I get the fo...
asked by 07.05.2018 / 22:00