Ver Mensaje Individual
  #8 (permalink)  
Antiguo 01/11/2006, 09:07
Avatar de chechun
chechun
 
Fecha de Ingreso: diciembre-2001
Ubicación: Córdoba - Capital - Alber
Mensajes: 348
Antigüedad: 22 años, 4 meses
Puntos: 0
el error que he tenido... es este:


Warning: Invalid argument supplied for foreach() in C:\AppServ2\www\aprendiendo\PocketReader.php on line 47

Warning: Invalid argument supplied for foreach() in C:\AppServ2\www\aprendiendo\PocketReader.php on line 55

en esas lineas tengo el sig codigo:
Código PHP:
 //Now we select some elements we want, discarding others (See rss specs 0.91, 0.92 and 2.0)
 ////// WHO title, description and link /////////////////////////////////////////////////////////
 
foreach ($channel["_ELEMENTS"] as $item){    
    if(
$item[_NAME]=="title"$base_name=stripslashes($item[_DATA]);
    if(
$item[_NAME]=="link"$base_uri=stripslashes($item[_DATA]);
    if(
$item[_NAME]=="description"$base_desc=stripslashes($item[_DATA]);
}
  
$base "<b>Web: </b><a href=\"$base_uri\" target=\"_new\">$base_name</a><br>$base_desc<br>";
 
/////////////////////////////////////////////////////////////////////////
 ////////// ITEMS --> items, description and link ////////////////////////////////////////////////////////
 
foreach ($channel["_ELEMENTS"] as $item){ 
    
//printf("ITEM: %s<br>", $item["_NAME"]);
    
if($item[_NAME]=="item") { 
__________________
My Personal Site
Mundial 2010