- <?php header ('Content-type: text/xml; content="text/html; charset=iso-8859-1');  
- echo ("<?xml version="1.0" encoding="iso-8859-1"?>");  
- ?>  
- <rss version="2.0">  
- <channel>  
- <title>Ofertas Laborales -  Mipagina .: Desarrollando :.</title>  
- <link>web</link>  
- <description>Ofertas Laborales / Version RSS</description>  
- <language>es</language>  
- <image>  
- <title>Ofertas Laborales / Version RSS</title>n  
- <url>/imgs/logo.jpg</url>  
- <link>web</link>  
- <description>Ofertas Laborales -  Mipagina .: Desarrollando :.</description>  
- </image>  
- <?php   
- //mysql_connect ("localhost", "root", "pass")  
-  or  die ("Cannot connect to database server.");
-   
- $resultado=mysql_query("SELECT * FROM pr_oferta where ofe_est='on' AND ofe_publicada='on' AND ofe_date_fin>date(now())  order by ofe_update desc limit 0,15");  
- //$row=mysql_fetch_array($resultado);  
-      
-      
-      ?>  
- <item>  
- <title><? echo $datos["ofe_nombre"];?></title>  
- <link>  
- miweb/detalle.php?i=<?php echo $datos["ofe_id"];?></link>  
- <description> <? echo substr($datos["ofe_desc"],0,2000)."";?>- </description>  
- </item>  
- <?  
- }  
-   
- ?>  
- </channel>  
- </rss> 
-   
-