'; echo ' Entradas en EGU.ES http://www.egu.es/ Últimas entradas destacadas na EGU es-ES'; // creamos documento si existen tutoriales nuevos while ($fila = mysql_fetch_array($resultado)) { $id_entrada22=$fila["id_entrada"]; $fecha22=$fila["fecha"]; $entrada22=mysql_query("select id_entrada, entrada from entradas where id_entrada='$id_entrada22'"); list($vid_entrada, $ventrada)=mysql_fetch_row($entrada22); $ventrada=ucfirst($ventrada); $vdefinicion2=mysql_query("select definicion from entradas where id_entrada='$vid_entrada'"); list($vdefinicion)=mysql_fetch_row($vdefinicion2); $vdefinicion=substr($vdefinicion,0,200); //SI NO HAY DEFINCION PILLAR ENTRADA Y SUB if ($vdefinicion == "") { $vdefinicion2=mysql_query("select definicion from acepciones where id_entrada='$vid_entrada'"); list($vdefinicion)=mysql_fetch_row($vdefinicion2); $vdefinicion=substr($vdefinicion,0,200); if ($vdefinicion == "") { $vdefinicion2=mysql_query("select definicion from subacepciones where id_entrada='$vid_entrada'"); list($vdefinicion)=mysql_fetch_row($vdefinicion2); $vdefinicion=substr($vdefinicion,0,200); } } $vtexto=$vdefinicion; $vfoto2=mysql_query("select foto from fotos where id_entrada='$vid_entrada'"); list($vfoto)=mysql_fetch_row($vfoto2); $vimage="http://www.egu.es/egu/adjuntos/fotos/$vid_entrada/$vfoto"; /* echo ' http://www.egu.es/egu/adjuntos/fotos/'.$vid_entrada.'/'.$vfoto.' http://www.egu.es/egu/html/index.php?id_rss='.$vid_entrada.' '; */ echo ' http://www.egu.es/egu/Html/images/logoeguonline2.gif http://www.egu.es/ '; $vtexto=strip_tags($vtexto); $vtexto.="..."; echo ' '.$ventrada.' '.$fecha22.' '.$vtexto.' http://www.egu.es/egu/html/index.php?id_rss='.$vid_entrada.' '; } echo ''; ?>