[eluser]trinic[/eluser]
This is the function that gets the image in my controller.
Code:
public function photos_get($id)
{
$photos = '';
$intellPhotos = $this->intell_model->getIntellPhotos($id);
foreach ($intellPhotos as $p) {
$photos .= '<div>';
$photos .= '<div class="photodelete" id="photo_' . $p->id . '">[ X ]</div><br />';
$photos .= '<img src="' . base_url() . 'intelluploads/' . $p->location . '" height="100" />';
$photos .= '</div>';
}
$photos .= '<div class="clear"></div>';
echo($photos);
}
What i'm trying to do is have a thumbnail image created and have the thumb_ prefix on it so I can just use the same filename, etc, with the prefix to display the thumbnails.