Questions tagged [codeigniter-2]

CodeIgniter 2.x is an old and no longer supported version of the popular PHP framework. Please refer to the [codeigniter] tag for more information.

Codeigniter 2.x is an old and no longer supported version of the popular PHP framework.

The last 2.x version (2.2.6) was released on October 31st, 2015, which is also the date when security maintenance support for the 2.x version tree was officially ended.

For more up-to-date information on the Codeigniter framework, please refer to the tag.

Links:

3146 questions
0
votes
3 answers

Displaying serial numbers with query result

I am trying to fetch data from my database and when I display it I want to show serial numbers (Just like a list) , example: **Serial Number** Name Country 1. John USA 2. Srijon …
black_belt
  • 6,601
  • 36
  • 121
  • 185
0
votes
2 answers

How to display Serial Numbers with mysql query result?

I have a script that displays information of these fields- batchname, class, batchinstructor from the table "batch". But I want to display dynamically generated serial number on the left side when I show the data. For example: Serial Number …
black_belt
  • 6,601
  • 36
  • 121
  • 185
0
votes
3 answers

How to display Serial Numbers with mysql query result in codeigniter?

I want to display serial numbers beside my mysql query result , example: Serial Number Name Country 1. John USA 2. Srijon UK I have tried something with PHP Loops, but I couldn't…
black_belt
  • 6,601
  • 36
  • 121
  • 185
0
votes
2 answers

Overloading CodeIgniter's base_url

I have 54 sites that have different URLS but use the exact same codeigniter system AND application folders (before you think I spam for a living, the reality is that we own/manage 54 properties that use the same website 'template' and differentiate…
jgravois
  • 2,559
  • 8
  • 44
  • 65
0
votes
1 answer

Displaying database value

I am trying to display data from database using Codeigniter's table and pagination library. In my model, apart from other column I want to fetch information of column "batchid" from my table "batch" ,but don't want to show it in the view file when…
black_belt
  • 6,601
  • 36
  • 121
  • 185
0
votes
1 answer

Image in Code Igniter anchor() function

I have a model to fetch data from mysql database. I am using the table and pagination library to display data. When displaying the data there is a column called "DELETE", which is used for deleting each rows. Instead of using the text "DELETE" I…
black_belt
  • 6,601
  • 36
  • 121
  • 185
0
votes
1 answer

CodeIgniter + Smarty = Error

Here's what I did: Downloaded and unzipped CI Downloaded and unzipped Smarty in /application/libraries/Smarty-3.1.4 Saved https://github.com/kzhiwei/codeigniter-smarty/blob/master/application/libraries/Smartylib.php to…
StackOverflowNewbie
  • 39,403
  • 111
  • 277
  • 441
0
votes
1 answer

How do insert and retrieve checkbox value using codeigniter?

My problem is, I key in the sibling details in the first row textboxs and i select the check box no error display. If i didn't select the checkbox its display the below error. Can you give some idea? i am new for CodeIgniter. I got error message:…
Abi
  • 33
  • 2
  • 10
0
votes
0 answers

Using codeigniter Cache library

I'm using Modular Extensions - HMVC by Wiredesignz I Create My_Controller on core folder, on constructor, I load Cache driver using this code: $this->load->driver('cache', array('adapter' => 'file', 'backup' => 'file')); On…
Permana
  • 1,972
  • 2
  • 33
  • 51
0
votes
1 answer

PHP: CodeIgniter; Managing two db connections; variable database parameters

i’m starting to code in CI and i have some problems with the following matter: I need a controller that will return a list of databases from a given server-login-pass and the tables in each database. Reading the user guide i’ve found everything i…
vto
  • 331
  • 2
  • 13
0
votes
1 answer

Skip "You did not select a file to upload" error and display all other errors

When I upload images, how do I ignore the "You did not select a file to upload" error and display all the other errors when an image is being upload? for($i = 1; $i < 6; $i++) { $upload = $this->upload->do_upload('image'.$i); if (!$upload)…
LiveEn
  • 3,193
  • 12
  • 59
  • 104
0
votes
0 answers

loading Model causes blank/white screen CodeIgniter 2.0.3

When i load the model blogmodel.php it causes a white screen, but if i comment out the load model, its working. my controller blog.php load->model('blogmodel'); …
Klipnov
  • 105
  • 1
  • 9
0
votes
1 answer

CodeIgniter - sending variable from controller to a view which use template

I have the following problems. I am using the following template for my application: load->view('backOffice/bo_header_in');?> load->view($bo_main_content);?> load->view('backOffice/bo_footer_in');?> When I…
Zoran
  • 1,321
  • 4
  • 22
  • 41
0
votes
3 answers

concatenate uploaded image file names

im using the below code to upload multiple images, take the image file name, concatenate with “,” and return the value so it can be used to insert into the database using CodeIgniter. The problem that im having is im unable to concatenate the file…
LiveEn
  • 3,193
  • 12
  • 59
  • 104
0
votes
1 answer

multiple image upload using codeigniter

im having a page that will insert username, ID and the user must be able to upload upto 10 images . The main problem that im having is when it comes to uploading multiple images using codeigniter. can someone suggest me how can i pass each image…
LiveEn
  • 3,193
  • 12
  • 59
  • 104