$contentlist.= "<tr onmouseover=\"this.style.backgroundColor='#D5BD77';\" onmouseout=\"this.style.backgroundColor='#E8D8A7';\"> <td width=\"10%\">".$categoryicon." [alt here]</td> <td width=\"90%\"><span class=\"media\">".$contentlink."</span></td> </tr>"; Code (markup): im trying to insert the alt in [alt here] im stuck help please
Are you sure, ".$categoryicon." looks like that's where it needs to go... are there any references to <img src= on your script ?
Yes thats what I meant, but ".$categoryicon." will display <img src="images/someCatIcon.gif" <<<< and its here you need to add alt="" before the closing tag> not outside the <img opening or closing> tag. Have a look through your script again and see if you can find <img tags
I sent you a pm: Find this: $categoryicon = "<img src=\"".$base_url."images/".$categoryicon."\">"; } } else $categoryicon = "<img src=\"".$base_url."images/unknown.gif\">"; PHP: And Change to this: $categoryicon = "<img alt=\"\" src=\"".$base_url."images/".$categoryicon."\">"; } } else $categoryicon = "<img alt=\"\" src=\"".$base_url."images/unknown.gif\">"; PHP: