[eluser]Replenish[/eluser]
Ok so I changed a few things around.
Controller:
Code:
$image = $this->uri->segment(3,0);
$this->db->select('extension')->from('pix')->where('original', $image);
$query = $this->db->get();
$data['image'] = $image;
$data['ext'] = $query;
$this->load->view('front/uploaded', $data);
View:
Code:
<div>
<?=$image;?>
<?=$ext;?>
</div>
The view spits out
Code:
3b1f98c3bb55e2aa24c8a39b5eb77e64 <--($image)
A PHP Error was encountered
Severity: 4096
Message: Object of class CI_DB_mysql_result could not be converted to string
Filename: front/uploaded.php
Line Number: 34
I've read over the query stuff in the user guide and i'm still at a loss :|
The table has columns as follows: id, original, height, width, original_path, extension