PDA

View Full Version : how to hide missing image area if i not put any image


kamalrun
11-15-2006, 12:02 AM
hello please help

i change some of code on "HTML_function.php" i mean to show images and text at front

problem is some of article don't have any image so at front its showing like a missing image


please guys tell me how to change that if i put image it will be show if i not, it will hide that image area

the code was change from this url

http://www.vivvo.net/forums/showthread.php?p=1235

shketuljko
12-07-2006, 01:00 PM
Kamalrun,

example:

if ($row['image'] != ''){
$img = '<img src=\"{$url}files/".{$row['image']}."\" align=absmiddle\" />';
}else{
$img = '';
}

$most_reading_articles.="
<tr><td class=\"plainTxt2\">
".$img."
<a href=\"{$url}{$id}\">{$row['title']}</a>
</td></tr>
";