[eluser]Miguel Diaz[/eluser]
Hello
I´m a designer and I am starting to use a little of php on my web pages and also start with codeigniter just like 2 weeks ago. Can somebody help me letting me know how to call and image from my graphic folder to a query. Here is the code I have in this moment but it is not working.
Example:
<?php foreach($query->result() as $row): ?>
<strong><?=anchor('articles/view/'.$row->url, $row->title);?></strong>
<span><?=$row->date?></span>
<img >url, $row->graphics);?> src="<?=$row->date?>" alt="titletags" />
<p><?=$row->shortdescription?><?=anchor('articles/'.$row->url, 'read more');?></p>
<?php endforeach; ?>
The names of my data base titles are id, title, date, shortdescription and graphics.
This is the query I made if I take out the img tag it work perfect with the text but I would like to know how to do it with an image. I have one filed in my database with the name of the image and also with the extension and then I am trying to insert the text from the database to load the image.
Can somebody help me please.