Most voted "codeigniter" questions
Codeigniter is a framework for developing PHP applications.
Learn more…1,026 questions
Sort by count of
-
1
votes1
answer289
viewsEdit html+php+jquery items
I have to edit a record series, the same are listed in a table (see): This is the form of the image above: <div class="control-group"> <table class="table table-bordered "> <thead>…
-
1
votes1
answer756
viewsError "1052 Column in Where clause is ambiguous"?
I am having problems performing a system. I am doing a Join and the following error appears: Error Number: 1052 Column 'id_doador' in Where clause is ambiguous SELECT * FROM doacao JOIN doador ON…
-
1
votes2
answers397
viewsSort according to database | PHP
I have the following structure: I have 3 types of classification, following the coherence: 1.0.0, 1.1.0, 1.1.1, 1.1.2 - I have to display in front of the titles, each content that belongs to its…
-
1
votes1
answer44
viewsCarousel shows no photo
Well, I have a carousel where I pick up the "images" (actually it’s just the names of the images) in the database and I do a foreach on the carousel but the images don’t appear. When I display the…
-
1
votes1
answer88
viewsphp session is broken when soon on two sites on the same apache server
I have two sites that perform user authentication and soon after create a session for the same, the two sites access the same database and therefore the user structure returned by the instruction:…
-
1
votes1
answer164
viewsProblems with a Select Codeigniter + PHP
Hello, I have the following case, I have a donor who wishes to make a donation in a center Hemocentro, it makes the search of this center and click on a wish button to donate here. This will create…
-
1
votes1
answer147
viewsError foreach codeigniter
I’m in the following problem, I make one select in the database and display the images on the page, is a classified portal where the person makes an ad and can upload up to 10 images. So far so…
-
1
votes0
answers38
viewsProblems with strings copied from a spreadsheet
I have a system that uses the Codeigniter framework, this system has some fields that the user uses to register things... The user copies some phrases that are standard of a spreadsheet of Libre…
-
1
votes1
answer92
viewsHow to get an infinite route in Codeigniter?
I have two urls: http://you.axitech.com.br/busca/qualquercoisa http://you.axitech.com.br/busca/qualquercoisa/outracoisa And I’m having these Routes: $route['search/(:any)'] = "Search/index/$1";…
-
1
votes1
answer31
viewsHow to modify this query to get the desired result in Codeigniter?
I have an SQL that returns to me the following: 1: Hacker And Automobiles OR 2: Food and I need her to return to me: 1: Hacker And 2: Cars or Food The code I have so far is: if(!$final['termo'] ==…
-
1
votes0
answers70
viewsError on CMS page in Code Igniter
I’m having an error with a CMS developed by someone else in Codeigniter, the error is as follows Fatal error: Call to undefined function get_instance() in…
-
1
votes2
answers476
viewsCodeigniter; Calendaring Class: highlight the current month in an annual calendar
I made a method that writes a VIEW with a calendar table that shows every month of a year using the library Calendaring Class. It works well, and returns it: Code: <?php class Calendar extends…
-
1
votes1
answer491
viewsCompare Dates - PHP - Codeigniter
Hello, I have the following case I’m with a date in the database saving so: (02-12-2016). The idea would be to take the current date and if it is less than 2 days that the date quoted above does…
-
1
votes1
answer1094
viewsProblem to generate reports with DOMPDF + Codeigniter
Hello, I am trying to generate a report using Dompdf but am encountering the following error A PHP Error was encountered Severity: Notice Message: Undefined property: Relatorio::$dompdf Filename:…
-
1
votes1
answer512
viewsList data in separate columns
I have the following list from the database <ul class="list-marked"> <?php foreach($cidades_presentes as $valor){ ?> <li><a href="#"><?php echo $valor->categoria;…
-
1
votes2
answers80
viewsError getting photo from facebook friend via PHP SDK
I’m using the Facebook SDK API to work with facebook. The SDK version I’m using is 2.8. I’m pulling up the list of my friends' Ids and I can successfully get. What I need now is to get a picture of…
php codeigniter facebook facebook-graph-api facebook-sdkasked 7 years, 11 months ago Alisson Acioli 5,815 -
1
votes1
answer773
viewsPassing Correct Form Ubmit Parameters
Hello, I’m trying to pass some parameters to the controller, but I’m not getting it. The following Code has been changed to load the contents of the tab clicked and display it in an input and…
-
1
votes1
answer78
viewsSend values to the database
You can help me send the values of the fields to the database. For the viewer, I’m using the following code: Page code: <?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>…
-
1
votes1
answer233
viewsadvanced datatables Codeigniter
I’m racking my brain with a little something in Codeigniter, I need to create an advanced table that expands details on each item of the table, as you can see in the code below I can’t separate a…
-
1
votes1
answer566
viewsView fullcalendar codeigniter events
Hello! I want to retrieve the events from the database and display them in the calendar. Can you help me to do this? So far I have the following codes: Model: Public function obter_noticias() { $sql…
-
1
votes1
answer1133
viewsFatal error: Call to a Member Function num_rows() on a non-object
I’m looking for the total number of lines of a query but keeps giving this error, I’ve tried to use the function Row(), rowCount() and even check if found any results to return and still not reached…
-
1
votes3
answers1150
viewsHandling Foreign key errors in Codeigniter
I am implementing a code where there is a foreign key in two tables. Soon I tried several means and could not handle the error: Error Number: 1451 Cannot delete or update a parent row: a foreign key…
-
1
votes1
answer680
viewsfill out datatime field
I’m trying to fill in the input datetime-local but the field is blank, I tried to command the format american and brazilian but it doesn’t come at all. in the database is stored in American format:…
-
1
votes1
answer232
viewsCodeingniter counting lines and displaying on View?
I want to count and display a database field. Database: nbkg Table: chamados Model: chamados_model.php <?php class dashboard_model extends CI_Model{ public function lista($chamados) { $query =…
-
1
votes2
answers69
viewsIf does not Char compare
I created in codeigniter a helper for datatable that would return an html with a bootstrap icon. Follows the function: function trata_check($valor) { $ci= & get_instance(); if($valor=='S'){…
codeigniterasked 7 years, 7 months ago Ruben Henrique Lima 21 -
1
votes2
answers113
viewsImprove a Bank Search
I would like an improvement help in a Search Query today every Search the user makes in the search field I give an OR in my Where I wonder if you have any better way to do this because I will need…
-
1
votes1
answer401
viewsName of Uppercase Columns with Codeigniter and Postgreesql
I am developing a WEB system using Codeigniter with support for Oracle database and Postgresql. In my queries, I use Codeigniter’s own Query Builder. Simple example of Select: SELECT "ID", "NOME"…
-
1
votes1
answer294
viewsHelper-menu and active submenu (codeigniter)
Hello! I’m using the menu helper to include class active in the menus of the site. Helper Menu: <?php defined('BASEPATH') OR exit('No direct script access allowed');…
-
1
votes1
answer795
viewsSELECT DINAMICO CODEIGNITER - AJAX
Hello! I have the following tables: tbl_lancamento tbl_category tbl_burden Whereas in tbl_lacamento there is a field (id_categoria) that receives the ids of tbl_categoria and tbl_categoria receives…
-
1
votes1
answer518
viewsDatatables bringing all data at once
I have a bizarre problem that’s making me pull my hair out, I know I’m creating a valid json via server side, I even used a json validator. the format of my json is that way: [ { "name": "jhon doe",…
-
1
votes4
answers629
viewsHow to make a Popup that only records information on the cookie or anything and displays only once on the website homepage
I have an adult entertainment site and I need to do an 18-year term to get on the site before... A screen will be displayed confirming the age and such of the person to click ok if it is bigger. But…
-
1
votes0
answers80
viewsProblems with logging into codeigniter after switching from windows to Ubuntu
I’m having problems, I had created a codeigniter application on my localhost, had the windows 10 operating system installed and used Wamp Server installed, but I formatted my computer and installed…
codeigniterasked 7 years, 4 months ago Bruno 11 -
1
votes1
answer61
viewsDoubt with Jquery and select
I am maintaining a code of another programmer and I am facing difficulties in two select. I need to take the time of each field and add up this interval, so far I’ve done some tests using the lib…
-
1
votes1
answer463
viewsHow to receive id’s in the controller/model
I’m creating a project and I ran into a problem. The idea is this: add participants to a specific event. I’ve created everything right: controllers, models and views. My question is how do I make…
codeigniterasked 7 years, 4 months ago Gabriel Alcala 17 -
1
votes1
answer614
viewsCodeigniter Administrative Area Controller
I am developing a website with administrative area. I started it with the new version of Codeigniter 3.1.5. In the main pages would be body of the site, already in the news pages the url would be as…
-
1
votes1
answer114
viewsA route forever the same controller plus several functions
I have the following link meusite.com/admin/concursos/concursos. My folders inside the controllers are like this: -admin +atos -concursos ->concursos.php +licitacoes This link takes the function…
-
1
votes1
answer681
viewsGet data from multiple codeigniter tables (Multidimensional Array)?
How to get data from multiple tables at once? I need to recover the data of the following object (debtor). There are several tables where the main table is tbl_devedor. After that, there are others,…
-
1
votes1
answer161
viewsHow to redirect to another view after sending email?
In the code below, after sending the form via e-mail, the same is loaded view. Instead, I need you to be directed to another view. (thanks for example) Below follows the code: public function…
-
1
votes2
answers190
viewsCreate object and send by ajax - Codeigniter
Hello, Can help me create an object with this code and send by ajax. console.log("cadastro-assessoria trabalhando"); //Variáveis $(document).ready(function() {…
-
1
votes1
answer86
viewsAzure codeigniter error: does not access subfolders
I have an Ecommerce system hosted on Azure( http://lojavirtualcodeigniter1.azurewebsites.net/) Developed in Codeigniter Framework 1.7.2 The system is loaded in index. However, I cannot load the…
-
1
votes1
answer245
viewsInsert_batch or update_batch - Codeigniter
Hello! Can help me with an insert_batch or update_batch. Through the code below I need to insert, update or delete an item from the database. As it is I am able to enter, but my problem is when I…
-
1
votes1
answer316
viewsObtain Multidimensional Array (codeigniter) data?
I had a case solved through the question of this link here in the O.R.: Following the example of the above question, I have the following table tbl_devedor_contrato, with the following fields: `id`…
codeigniterasked 7 years, 2 months ago Wagner Fillio 1,328 -
1
votes2
answers940
viewsUndefined error Property: Products::$db in Codegniter
I’m following the tutorial of a video to create a crud in Codegnaiter, I’m using the Postgresql database and Xampp MODEL: if (!defined('BASEPATH')) exit('No direct script access allowed'); class…
-
1
votes1
answer139
viewsCall Procedure with Oracle return in Codeigniter
I am developing a system and in a part of the code, I need to call a precedent and it returns me a value. How can I do that? For now I did so and it didn’t work: $sql = "CALL P_VERIFICA_VALORES(" .…
-
1
votes1
answer1950
viewsSend headers in HTTP Request with Curl in PHP
Hello, I made a function to make Curl calls to an API and I’m able to make the calls but I’m not able to send headers. Function: function curlRequest($endpoint, $verb, $headers, $params = null) {…
-
1
votes0
answers219
viewsProblem to load view
Hello, I am consuming an API in my controller and, upon receiving the result, I would like to load a user panel view. But when the script arrives in the method $this->load>view() nothing…
-
1
votes1
answer510
viewsSearch in two tables with codeigniter
I have the following situation: When selecting a marca in tabela compatibility, I want to list all products in the Product table, whose code is equal to the code of the selected brand. Example: when…
-
1
votes0
answers19
viewsCodeigniter 1.7 Error upload remote server
protected function _upload_file($id, $userfile, $folder, $thumb = TRUE) { if(empty($_FILES[$userfile]['name']) == TRUE) { return FALSE; } //altera nome do arquivo…
-
1
votes1
answer50
viewsCodeigniter like post and show as likes
I’m developing a publishing script, like and excuse, but when I put the option to be liked starts my mistake. SE ( ID_PERFIL = ID_PERFIL e ID_PUBLICACAO= ID_PUBLICACAO ) { CURTIU } SE NAO { CURTIR }…
-
1
votes1
answer413
viewsError in passing value to View in codeigniter
In a simple application. A value is passed to view. However codeigniter reports an error: PHP code: class User extends CI_Controller { public function __construct(){ parent::__construct();…