Most voted "codeigniter" questions
Codeigniter is a framework for developing PHP applications.
Learn more…1,026 questions
Sort by count of
-
-1
votes1
answer193
viewsImport excel to multiple tables - PHP and MYSQL (codeigniter)
Hello, with the function below, I can import the data from an excel spreadsheet to the database, via PHP. To tables client contains the following fields: `id` INT(11) NOT NULL AUTO_INCREMENT, `name`…
-
-1
votes1
answer53
viewsAjax + Codeigniter returning "error"
so I’m trying to perform a request in Ajax to save a registration but it’s not working. I’m using Codeigniter. Every time I try to send the Form ajax is returning me the error I don’t know where the…
-
-1
votes1
answer33
viewsFind file in the same folder in codeigniter
How do I pass the URL in javascript to find the file in codeigniter, in PHP I step "<?php echo base_url()?>" this variable to find arqiuvos CSS/JS/IMAGES, now this variable does not work in…
codeigniterasked 4 years, 10 months ago Luiz Carlos 1 -
-1
votes2
answers584
viewsWhy is the Json_encode() PHP function not returning data in Json format?
Good Morning. After 2 full days researching I post my question: Why does the command echo json_encode($a); is returning an HTML page ? It is a registration where I have 1 foreign key, but the user…
-
-1
votes1
answer122
viewsKeyword filter with other fields
Hello, I am developing a system where I need to perform a user filtering, and in this filtering will be used several simultaneous fields (name, Cpf, gender, age and etc.), the problem begins when I…
-
-1
votes1
answer460
viewsHow to set up Class email in Codeigniter 4
I followed several tutorials that I looked for, but I couldn’t work, I don’t know what I’m missing, I’m starting now to mess with Codeigniter and I got version 4. I’m wanting to when fill the form…
-
-2
votes2
answers559
viewsError query php/codeigniter
I am using the code below to make a query in the database, but it is giving the following error: PHP Error was encountered Severity: Notice Message: Undefined Property: Admin::$db Filename:…
-
-2
votes2
answers381
viewsDoubt in the logic of registration with codeigniter!
I have a "table" with the following fields: person, tree, date start (Default), datafim (Default), My doubt in logic is as follows: Register an employee and his area of responsibility with the start…
-
-2
votes1
answer70
viewsWrite input filenames to xml
I would like to record input files in an xml document public function do_upload() { $this->load->library('upload'); $len = count($_FILES['files']['name']); $nomes = array(); for($i = 0; $i…
-
-2
votes1
answer107
viewsCounties in codeigniter with DB data
Good afternoon I need to get some settings for my site that comes from a table in the database, currently I use variable more then every time have to go there at the bank to get, I think this can…
-
-2
votes1
answer86
viewsHow to skip line after comma of a variable stored in the Mysql database
In the view.php file, I need to display a field that is already stored in database, of the type sweep, but when displaying I want the text to be shown skipping lines when finding the comma character…
-
-2
votes2
answers328
viewsWith "echo" it works and with "Return" it doesn’t
I have a function, and it checks if the ID that I’ve informed has more than six records in the database. If it has, then it takes, makes a select to return these 6 records and plays in an array and…
-
-2
votes1
answer558
viewsget data with PHP + codeigniter by clicking a button
Good afternoon guys follows a doubt I have a list as below: By clicking history I am directed to this page: This page is showing all comments made for the customer to overcome By clicking on new…
-
-2
votes1
answer85
viewsWhy is my ajax request not working?
<script type="text/javascript"> $('#enviar').click(function(){ $.ajax({ type: 'post', data: '', …
-
-2
votes2
answers50
viewsDate problem: 1919/1010/20181818 03:15:16 PM
It’s all right but when it comes time to display or save the date in the bank, it’s getting so 1919/1010/20181818 03:15:16 PM... I don’t know what problem, or if I made a mistake somewhere. Does…
-
-2
votes1
answer33
viewsType in an input and generate an acronym in the second input with 3 characters
Hello! I need help!! I would like to create an acronym for the client with 3 characters, when I type in the first input will generate in the second input, examples: "ABOBORA" generates "ABO",…
-
-2
votes1
answer55
viewsTake json array in ajax
Good afternoon, I have a problem to display the result in the json, I do an Insert of an array in the database with for, it inserts perfect in the database, but I’m not able to display the…
-
-2
votes1
answer36
viewsCheck if there are active products in this brand, if not, show brand
I have two tables in my bank, adm_marca and adm_produto, at the moment, is showing in my view all brands, regardless if there are active products or not, I need to show only brands that do not have…
-
-2
votes1
answer85
viewsHow to perform two functions from the same table
I have this Function to group values of two tables "sales" and "customers", but in addition to grouping this information, I need to perform a search in the database according to the parameters. I…
-
-3
votes3
answers1798
viewsHow to work with PDF in Codeigniter?
function cadastra_pesquisa() { $this->load->library('form_validation'); $this->form_validation->set_rules('d_c_p_p', 'Domínio do conteúdo por parte do palestrante',…
-
-3
votes1
answer1196
viewsUpdate button data of a query without refresh on the page
I am creating an application in PHP (Codeigniter) and I came across the following situation. I have a table on my page that brings all the results of a query in the database. I want to create a…
-
-3
votes1
answer928
viewsSearch system with codeigniter
Could someone tell me a good tutorial, or a way to make a search system with codeigniter? I thank you already.
-
-3
votes3
answers252
viewsGroup and add PHP dynamic arrays
I am creating a shopping cart and save the product id’s in the session as follows: array( 636 => 1, 637 => 2 ); Where the 636 and 637 refer to the product ID and the value would be the…
-
-3
votes1
answer229
viewsVariable inside a php array
I have a foreach where I search the value and name of the products, ai i’m trying to integrate a varial php within an array of paghiper in json, for it generate the boleto, as I can do this ? I need…
-
-3
votes0
answers10
viewsProbrema Codeigniter intelephense 1009 and 1035
I’m having a problem with the Ci_controller class. the problem is reported in the following photos, however it boils down in not finding library Ci_controler [intelephense 1009], consequently not…
-
-5
votes1
answer1666
viewsHow to upload multi images to Codeigniter?
I need to make a system to generate photo gallery, how to multi upload in Codeigniter?
codeigniterasked 10 years, 9 months ago Jon 11