CodeIgniter is an open-source PHP web development framework created by EllisLab Inc. The framework implements a modified version of the Model-View-Controller design pattern.
0
votes
2answers
23 views
Refresh a div with result after posting to database with ajax and codeigniter
I am writing a Codeigniter app, and I use ajax to send data to my controller/method, and would like to know how to refresh a div using ajax without reloading the entire page (the path from db to view ...
-3
votes
0answers
17 views
Form Helper Drop Down Menu
Is there a way to create a MySQL linked dropdown menu using the form helper in CodeIgniter? I tried to do it but I cannot seem to get it to work.
Model
function get_airports()
{
...
-3
votes
1answer
39 views
Checkbox value not properly checked
<?php
$i = 0;
foreach($prj_data as $prj_pop) {?>
<input type="checkbox" class="checkbox_project" value="<?php echo $prj_pop->name;?>"
<?php
...
3
votes
1answer
20 views
download and store google street view panoramas based on lat/long
I have a data set of locations (9000 records) which I have long/lat for. I would like to give each location a photo. It would be neat to use google street view photos for this. I dont want to rely ...
0
votes
1answer
21 views
CodeIgniter complains about undefined variable in view yet print_r displays results
I am seeing some odd behavior in my basic PHP codeigniter app.
My output looks like this:
number of rows:
Warning notice
undefined variable: rows
number of rows: 10
What is most ...
0
votes
0answers
14 views
Manage data with restful server codeigniter
I´m implementing the restful server of philsturgeon and all works fine but I have problem to manage the data that I obtain of the web service look I have this code
At the server:
function ...
0
votes
1answer
34 views
I can't decide how to structure my table
I'm building a website where basically there will be forms with multiple fields, to make user input really specific, instead of it all coming down in a single paragraph.
So I'm thinking maybe I'll ...
0
votes
2answers
18 views
setting session in foreach loop in codeigniter
i have a model in codeigniter that gets notification from the database using foreach loop.i want to pass the values to session using set_userdata but unfortunately i cant pass multiple values in to my ...
0
votes
0answers
8 views
How to Create Ajax Pagination using CodeIgniter?
public function reply {
$data['heading'] = "Inquiry Reply";
$page = "inquiry-reply";
$data['result1'] = $this->add->inquiry_status('pending');
...
0
votes
2answers
13 views
Passing common title to all view and models CodeIgniter
I have this controller
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Main extends CI_Controller {
function __construct()
{
...
0
votes
0answers
6 views
How to use CI Image lib with image stream/byte array
As I using CodeIgniter 2.x. By which I could crop resize an image from source image. Instead of source image I want to use image stream/byte array. How do i could over come this problem.
public ...
0
votes
1answer
39 views
Performances, mysql queries vs php array
I'm working with codeigniter, now i'm doing a php loop (x100), in each loop i do a mysql query, the result is fine, 1 sec.
But is it the good way to do it ?
i could make a single mysql query and find ...
0
votes
0answers
15 views
Pagination code igniter
I'm using code igniter pagination library for my site. I've given all necessary details such as
$config['base_url'] = base_url().'collegelist/';
$config['prefix'] = 'collegelist/';
...
0
votes
1answer
15 views
Codeigniter : Session can't be deleted on new server
I'm a new user of Codeigniter. I've developped a website with the Session system of Codeigniter : a user can create an account or navigate freely in a 'visitor' session.
Everything works fine on the ...
0
votes
0answers
19 views
How do I perform mysql NOT IN operation in jquery datatables in codeigniter?
I want to do NOT IN operation or subquery on dataTables, but I'm able to configure how to actually perform such operation.
Is it even possible to perform such operation?
Here is my query :
...