i’ve run into a curious problem with codeigniter's odbc driver.
i’m connecting from a linux machine to an MSSQL 2008 machine using FreeTDS.
while i get that the ‘num_rows’ function always returns -1, and that is fully a database/driver issue - for some reason when i try to create a ->result(), the whole application crashes (error 500, s...
I have created a helper that requires some parameters and should upload a file, the function works for images however not for zip files. I searched on google and even added a MY_upload.php -> http://codeigniter.com/bug_tracker/bug/6780/
however I still have the problem so I used print_r to display the array of the uploaded files, the im...
can anyone tell me how do i access model from view in codeigniter?
...
EDIT 1.
The results of a query from my database are displayed on my view page. Next to each unique result is a button:
// first_view.php
<?php echo form_open('controller/method'); ?>
<?php foreach($results_found as $item): ?>
<p><?php echo $item->name ?></p>
<p><?php form_submit('buy','Buy This'); ?></p>
When a user clicks on one ...
Hi,
Using CodeIgniter, I am trying to place several images onto my view page as follows
...
<?php foreach($results_found as $item): ?>
<tr>
<td><?php echo base_url();?>images/$item->img.jpg</td>?
<td><?php echo $item->title ?></td>
</tr>
...
but all this displays is the url for the images.
I've stored the names of the image...
Version info: CI version 1.7.2 - PHP 5.3.1 - Apache2 - Mac OSX 10.6.3
For some reason, when I load CI's email library, either in my controller, or in autoload.php, it automatically and immediately echoes the config info like so:
$config['protocol'] = 'sendmail';
$config['mailpath'] = '/usr/sbin/sendmail';
$config['charset'] = 'iso-8859...
I'm using DX_AUTH to handle autentication in my codeigniter app.
I want to display in each page the login status, I'm used to develop my view throught template inheritance.
I'm looking for a way to access login information from the views without passing it each time.
...
Hello
I have about 8 check boxes that are being generated dynamically from my database.
This is the code in my controller
//Start Get Processes Query
$this->db->select('*');
$this->db->from('projects_processes');
$this->db->where('process_enabled', '1');
$data['getprocesses'] = $this->db->get();
//End Get Processes...
Hello
I'm a bit new to jquery tools and javascript in common. I've tried to google/search this forum, but I probably dont know exactly what to search.
Thing is:
I have a page which has tabs.
Inside one tab when the button is pressed depending os input text it list some records
Loads using
myUrl = 'admin/listusers/' + mySearch +'/'+ page...
I am doing php in codeignitor framework.Always codeignitor support default persistent connections.I dont want to use that connection.I need to connect manually.Is it possible in codeignitor?If anybody know please help me to go forward.I need little bit explanation also please.
...
I'm new to CodeIgniter and have just discovered the difficulties using the GET method of passing variables via the URL (e.g. domain.com/page.php?var1=1&var2=2).
I gather that one approach is to pass the variables in the URI segments but haven't quite figured out how to do that yet as it seems to create the expectation of having a funct...
with my table.
person_id serial NOT NULL,
firstname character varying(30) NOT NULL,
lastname character varying(30),
email character varying(50),
username character varying(20) NOT NULL,
"password" character varying(100) NOT NULL,
gender character varying(10),
dob date,
accesslevel smallint NOT NULL,
company_id integer ...
Hello.
I have a from with a checkbox, and depending on the checkbox state 2 different divs are shown.
var alias = document.getElementById('alias');
var list = document.getElementById('list');
if(document.getElementById('isList').checked)
{
alias.style.display = 'none';
...
Hi guys,
We're building a PHP app based on Good old MVC (codeigniter framework) and have run into trouble with a massive chained action that consists of multiple model calls, that together is a part of a big transaction to the database.
We want to be able to do a list of actions and get a status report of each one back from the functio...
So I'm using the following:
$r = new Record();
$r->select('ip, count(*) as ipcount');
$r->group_by('ip');
$r->order_by('ipcount', 'desc');
$r->limit(5);
$r->get();
foreach($r->all as $record)
{
echo($record->ip." ");
echo($record->ipcount." <br />");
}
Standard:
SELECT `ip`, count...
Hi There,
I have a simple form in codeigniter that I wish to use for the editing or records.
I am at the stage where my form is displayed and the values entered into the corresponding input boxes.
This is done by simply setting the values of said boxes to whatever they need to be in the view:
<input type="text" value="<?php echo $arti...
I have a model and controller who gets some data from my database and returns the following array
Array
(
[2010] => Array
(
[year] => 2010
[months] => Array
(
[0] => stdClass Object
(
[sales] => 2
...
I'm writing a web app, initially meant to be stand-alone--it's essentially a survey with user-management/authentication built on Codeigniter. The company I'm doing this for wants to merge it with their main system so that it acts like a feature, or a sub-app of their website.
What is the best thing for me to do? I think I could do one o...
Hi all,
I know there’s been a good deal written on thumbnail generation and the like with CI, but I wanted to explain what I’ve made and see what kind of best-practice advice I could find. Here’s my story…
Currently, I have a site which allows users to upload collections of photos to projects they’ve created after first creating an ac...
I've written an email application in PHP that handles very large mailing lists. Is there a way to find out what emails are opened and by who? Any solution will do as long as it can tell me if the user has actually received and opened the email. I do not want to use email receipts either as it may put off recipients.
If it's relevant, I'...