DATE_SUB(NOW(), INTERVAL 1 DAY)"; } $result = mysql_query($query); while($row = mysql_fetch_array($result)) { echo $row['id'] . "\t" . iconv('iso-8859-1', 'utf-8', $row['name']) . "\t" . $row['web'] . "\n"; } ?>