Heres a bit more of the code, what would I need to add/alter on this to put standard pic if path to image is invalid or missing.
$INSERT{price} = $row[3];
$INSERT{trade_price} =sprintf("%.2F",($row[3]*$coef_trade));
$INSERT{customer_price} =sprintf("%.2F",($row[3]*$coef_web));
if ($row[13]){$INSERT{vat_price} = sprintf("%.2F",($row[3]*$coef_web));}
else{$INSERT{vat_price} = sprintf("%.2F",($row[3]*$coef_web*$coef_vat));}
$INSERT{name} = $row[2];
$INSERT{description} = $row[8];
$INSERT{text} = $row[10];
$INSERT{weight} = $row[11];
$row[16] = sprintf("%.2F",($row[15] - $INSERT{customer_price}));
$INSERT{RRP} = "
<font class=price2>Save £ $row[16]</font> <font class=\"cost\">
on RRP of £ $row[15]
</font>" if $row[15];
$tmp_alt="";
$tmp_alt=qq| alt="$INSERT{name}"| if $row[7];
$INSERT{image} = qq|[img]$image_dir/$row[6][/img]| if $row[6];
$INSERT{image} ="<a href=\"$row[7]\" target=_blank>$INSERT{image}</a>" if $row[7] && $INSERT{image};
$INSERT{id} = "$row[0]";
for(1..$row[9]){$INSERT{rating}.="<img src=\"$img3\" border=0 align=top>";}
$row[12]=~s/,/<option>/ig;
$INSERT{options} = "<font class=price>Option:</font> <select name=options_$row[0]><option>".$row[12]."</select>" if $row[12];
#$p = substr(addslashes($INSERT{name}), 0, 10);
#$INSERT{hash}=md5_hex($secret_key . $p . $INSERT{customer_price} . $INSERT{weight});
$INSERT{free_delivery} = "<img src=\"$imgFree\" border=0 alt=\"FREE DELIVERY WITH THIS PRODUCT!\">" unless $INSERT{weight};
$INSERT{WEB} = qq~
[img]$imgWeb[/img]~ if $row[7];
$INSERT{menu} = mmenu($FORM{cat});
$text.=get_record($template);
$INSERT{title} = $INSERT{name};
$INSERT{title} =~s/ /\/g;