I am currently using two fields from a database, The fields have words which are seperated by comma's (,).
Here is my code
$tags = explode(",",$tags);
$tagsdesc = explode(",",$tagsdesc);
foreach($tags as &$key)
{
foreach($tagsdesc as &$value)
{
echo "<img src='images/".$key."' width='20' height='20' title='".$value."'></img> ";
}
}
The two values, $tags and $tagsdesc are fed into a function. I am having difficulty spitting out the html where the $key displays but not the $value for the image title, thank you.