Hello!
I have the following tables:
tbl_encargo tbl_category tbl_encargo
Since in tbl_lacamento there is a field ( id_categoria ) that receives the ids of tbl_categoria and tbl_categoria receives its id (...
Hello!
I'm using the helper menu to include class active in the site menus.
Helper Menu:
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
if(!function_exists('active_link'))
{
function men...
I need to pass the multiple $ limit to my view and display it there, how could I do that?
public function index() {
// ....
$this->pagination->initialize($config);
$data['pagination'] = $this->pagination->create_links()...
I have the following list coming from the database
<ul class="list-marked">
<?php foreach($cidades_presentes as $valor){ ?>
<li><a href="#"><?php echo $valor->categoria; ?></a></li>
<...
I have two sites that perform user authentication and soon after creating a session for it, both sites access the same database and therefore the user structure returned by the statement:
$usuario = $this->db->get('usuarios').result();...
Developing a login system, I wrote the following script in the controller:
$usuario = $this->input->post('usuario');
$senha = $this->input->post('uenha');
$q = $this->login->logar($usuario, $senha);
if (!$q):...
I'm having trouble making a system. I'm doing a join and the following error appears:
Error Number: 1052 Column 'donor_id' in where clause is ambiguous
SELECT * FROM doacao JOIN doador ON doacao . id_doador =
...
I was following the CodeIgniter startup tutorial when I came across a problem with routes.
The route file has the following routes:
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
$route['news/create'] = 'news/create';...
I'm learning Codeigniter and would like to know what or correct ways to insert a navbar in my view taking into account that it will be inserted by all the views in the system.
My question is what directory to write the navbar and how to c...
Well, I'm trying to make a page that shows the user's data that is logged in.
Model:
function getAllDisplayable3()
{
$username = $this->session->userdata('username');
$this->db->select('id_login, nome, username, passw...