include("../xconfig.inc"); function ponerLink($link) { echo $link; } if ($idlahoja == '') { $q=mysql_query("SELECT * FROM lahoja where ONLINE = 'S' ORDER BY ID DESC LIMIT 0 , 1 "); } else { $q=mysql_query("SELECT * FROM lahoja where ID = '$idlahoja'"); } $row=mysql_fetch_array($q); $idlahoja=$row['ID']; lahoja_estadisticas(3,0,$origen); //-----declaraciones----- $vdec=explode(",", $row['DECLARACIONES']); $s=''; $sql=''; while (list($key,$value)=each($vdec)) { if ($s == '') {$s=1;$sql="select ID,TITULO,FINGRE from declaraciones where ID = '$value'";} else $sql.=" or ID = '$value'"; } $sql.=" order by FINGRE DESC"; $queryDec=mysql_query($sql); ?>
|