Hola de nuevo:
Ahora te deberia funcionar.
1. Se debe colocar borde = 0, width = 0 , height = 0, y
cargar una imagen en blanco, solo cuando no se tenga guardado ningun nombre de imagen en la base de datos, entonces queda de la siguiente forma:
<html>
<head>
<title>Oficina de Prensa Archivos de Noticias</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Dev-PHP 1.9.4">
<!-- Conecta a la base de datos //-->
<?
$tabla = "news";
$username = "usuario";
$password1 = "password";
$dbName = "noticias";
$hostname = "localhost";
mysql_connect($hostname,$username,$password1) or
print "Error en la Conexión";
mysql_select_db("$dbName") or
print "Error en la Base de datos";
$id = $_GET['id'];
$consulta = "select * from $tabla where id = $id";
$resultado=mysql_query($consulta);
$naslov=mysql_result($resultado,0,naslov);
$tekst=mysql_result($resultado,0,tekst);
$datum=mysql_result($resultado,0,datum);
$pozicija=mysql_result($resultado,0,pozicija);
$slika=mysql_result($resultado,0,slika);
<!-- INICIO NUEVAS LINEAS ESCRITAS //-->
if ($slika='')
{
$w = 0;
$h = 0;
$b = 0;
<!-- DEBES CARGAR UNA IMAGEN EN BLANCO PEQUEÑA //-->
$slika= 'blanco.jpf';
}
else
{
<!-- CARGAMOS LOS DATOS DE FORMA NORMAL //-->
$w = 356;
$h = 218;
$b = 2;
}
<!-- FIN NUEVAS LINEAS ESCRITAS //-->
?>
<!-- Fin Conecta a la base de datos //-->
<style type="text/css">
<!--
.menu {font-family:Arial; font-weight:bold}
.menu a{
text-decoration:none;
color:black;
}
-->
</style>
<script language="javascript">
function movein(which,html){
which.style.background='bisque'
if (document.getElementById)
document.getElementById("boxdescription").innerHTML=html
else
boxdescription.innerHTML=html
}
function moveout(which){
which.style.background='white'
if (document.getElementById)
document.getElementById("boxdescription").innerHTML=' '
else
boxdescription.innerHTML=' '
}
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body>
<font color="#003399" size="3"><font color="#000000"><strong>
<!-- Script muestra la fecha //-->
</strong></font></font><table width="100%" height="223" border="0">
<span id="Layer1" style="position:absolute; left:54px; top:49px; width:435px; height:327px; z-index:1">
<form name="formulario" method="post" action="">
<tr>
<td height="21"><p align="center"><span id="Layer1" style="position:absolute; left:478px; top:32px; width:435px; height:327px; z-index:1">
<input type="hidden" value="<? echo $id?>" name="id">
</span>
ESTE CODIGO DEL IMG TAMBIEN ESTA MODIFICADO
<img src="./img/<? echo $slika ?>" align="center" border = "<? echo $b ?>" name="roll" width="<? echo $w ?>" height="<? echo $h ?>"></p>
<p align="center"> </p></td>
<font size="3"> <font face="Arial, Helvetica, sans-serif"> <font color="#003366">
</div>
</font></font></font>
<font size="3"> <font face="Arial, Helvetica, sans-serif"> <font color="#003366">
</td>
</font></font></font> </tr>
<tr>
<td height="20"> </td>
</tr>
<td><font color="#003366" size="3" face="Arial, Helvetica, sans-serif"><strong><? echo $naslov?></strong></font></td>
<tr>
<td><div align="justify"><font color="#003366" size="3" face="Arial, Helvetica, sans-serif"><? echo $tekst?>
</textarea>
</font></div></td>
</tr>
<tr>
<td height="23"><font color="#003366" size="3" face="Arial, Helvetica, sans-serif"> </font></td>
</tr>
<tr>
<td height="21"><font color="#003366" size="3" face="Arial, Helvetica, sans-serif"> </font></td>
</tr>
<tr>
<td height="21"><div align="justify"></div></td>
</tr>
<tr>
<td height="22"> </td>
</tr>
</form>
</span>
<p> </p>
<p> </p>
</body>
</html>
Espero que funcione, comenta los resultados.
Si sale un error, escribe la descripción del error.
Saludos