Ver original$resulta=mysql_query("select * from documentos Where estado='egreso' and fecha<'$fecha'",$link);while($uno=mysql_fetch_array($resulta)){$identegreso=$uno['identificador'];echo $identingreso."<br />";}