tagged [codeigniter]
How to prevent the "Confirm Form Resubmission" dialog?
How to prevent the "Confirm Form Resubmission" dialog? How do I clean information in a form after submit so that it does not show this error after a page refresh? See image (from chrome): ![](https://...
- Modified
- 9 Aug at 18:30
using BETWEEN in WHERE condition
using BETWEEN in WHERE condition I'd like the following function to select hotels with an accomodation between a certain `$minvalue` and `$maxvalue`. What would be the best way to do that? ``` functio...
- Modified
- 14 May at 16:4
CodeIgniter: How To Do a Select (Distinct Fieldname) MySQL Query
CodeIgniter: How To Do a Select (Distinct Fieldname) MySQL Query I'm trying to retrieve a count of all unique values in a field. Example SQL: ``` SELECT count(distinct accessid) FROM (`accesslog`) WHE...
- Modified
- 31 Dec at 10:24
Pass array to where in Codeigniter Active Record
Pass array to where in Codeigniter Active Record I have a table in my database with adminId and clientId There might be 20 records with the adminId of the logged in user and I'm trying to pull a list ...
- Modified
- 5 Dec at 06:29
Codeigniter $this->db->get(), how do I return values for a specific row?
Codeigniter $this->db->get(), how do I return values for a specific row? Say I have a database table with three columns: ID, Name, and Age. I need to find the user with a specific (unique) ID, and the...
- Modified
- 31 Mar at 14:16
Codeigniter $this->input->post() empty while $_POST is working correctly
Codeigniter $this->input->post() empty while $_POST is working correctly On a codeigniter installation, I am trying to use the inbuilt `$this->input->post('some_data')` function, however `$this->input...
- Modified
- 11 Sep at 19:2
COUNT / GROUP BY with active record?
COUNT / GROUP BY with active record? I have a table with the following info: What I want is a top 10 (array) with most entries per user_id (order high to low). So using the table above I need the
- Modified
- 30 Jun at 07:30
CodeIgniter query: How to move a column value to another column in the same row and save the current time in the original column?
CodeIgniter query: How to move a column value to another column in the same row and save the current time in the original column? In my db table, I have two datetime columns: `Last` and `Current`. The...
- Modified
- 6 Apr at 13:22
How to select rows where column value IS NOT NULL using CodeIgniter's ActiveRecord?
How to select rows where column value IS NOT NULL using CodeIgniter's ActiveRecord? I'm using CodeIgniter's Active Record class to query the MySQL database. I need to select the rows in a table where ...
- Modified
- 12 May at 07:44
base_url() function not working in codeigniter
base_url() function not working in codeigniter In my web application using codeigniter. I am trying to use base_url() function but it shows empty results. I have also used autoload helper through auto...
- Modified
- 10 Jan at 09:53
insert data into database with codeigniter
insert data into database with codeigniter Trying to insert a row into my database with CodeIgniter. My database table is `Customer_Orders` and the fields are `CustomerName` and `OrderLines`. The vari...
- Modified
- 22 Apr at 19:58
Codeigniter - multiple database connections
Codeigniter - multiple database connections I have to retrieve a MySQL database information from master database and then connect to that database, and fetch some records. I mean that holding one data...
- Modified
- 3 Sep at 14:40
Inserting NOW() into Database with CodeIgniter's Active Record
Inserting NOW() into Database with CodeIgniter's Active Record I want to insert current time in database using mySQL function NOW() in Codeigniter's active record. The following query won't work: This...
- Modified
- 15 Jun at 07:33
Codeigniter's `where` and `or_where`
Codeigniter's `where` and `or_where` I'm trying to specify a query in my model ``` $this->db ->select('*') ->from('library') ->where('library.rating >=', $form['slider']) ->where('libr...
- Modified
- 11 May at 15:24
How to upload image in CodeIgniter?
How to upload image in CodeIgniter? In view In controler ``` function do_upload() { $config['upload_path'] = './uploads/'; $config['allowed_types'] = 'gif|jpg|png'; $config['max_size'] = '100'; ...
- Modified
- 8 Jun at 18:11
How to load a controller from another controller in codeigniter?
How to load a controller from another controller in codeigniter? I want to load a controller from a function in another controller because the library I integrated to my project I don't want to load i...
- Modified
- 16 Feb at 04:30
Redirect with CodeIgniter
Redirect with CodeIgniter Can anyone tell me why my redirect helper does not work the way I'd expect it to? I'm trying to redirect to the index method of my main controller, but it takes me `www.examp...
- Modified
- 19 Dec at 21:13
what is the use of $this->uri->segment(3) in codeigniter pagination
what is the use of $this->uri->segment(3) in codeigniter pagination hear is my code ``` public function viewdeletedrecords() { if($this->session->userdata('applicant_firstname') == '') { redi...
- Modified
- 2 Dec at 18:58
How to execute my SQL query in CodeIgniter
How to execute my SQL query in CodeIgniter I have a problem with my query and now my problem is how can I execute my query. I got my syntax format from here [http://www.x-developer.com/php-scripts/sq...
- Modified
- 8 May at 08:6
Query error handling in CodeIgniter
Query error handling in CodeIgniter I am trying to execute a MySQL query using the CI active record library. If the query is malformed, then CI invokes an internal server error 500 and quits without p...
- Modified
- 13 Jan at 17:39
Display alert message and redirect after click on accept
Display alert message and redirect after click on accept I have a page with links to reports. Whenever somebody clicks on one report, they can download the excel file. However, sometimes there are no ...
- Modified
- 18 Jun at 10:53
CodeIgniter 500 Internal Server Error
CodeIgniter 500 Internal Server Error I downloaded a PHP script written using CodeIgniter. when I run it from the localhost, on going to the admin folder, it shows localhost again. Also when running f...
- Modified
- 11 Sep at 11:22
SELECT with LIMIT in Codeigniter
SELECT with LIMIT in Codeigniter I have a site develop in Codeigniter, and in my model I have a function like this: ``` function nationList($limit=null, $start=null) { if ($this->session->userdata('...
- Modified
- 9 Jan at 08:37
Trying to get property of non-object - CodeIgniter
Trying to get property of non-object - CodeIgniter I'm trying to make update form, that is going to retrieve the data for the specific ID selected, and fill in the form, so its going to be available f...
- Modified
- 18 Sep at 15:22
JSONP in CodeIgniter
JSONP in CodeIgniter I have a problem with using the jQuery JSONP method `$.getJSON` in CodeIgniter. The URL from which the JSON is grabbed from is the following: The Problem is that I have a `demo.ht...
- Modified
- 31 Dec at 11:6