pouet.net/api/groups.php

15 lines
541 B
PHP
Raw Normal View History

2013-05-07 14:20:08 -04:00
<?php
header('Content-Type: text/plain; charset=utf-8');
include_once('../include/misc.php');
include_once('../include/auth.php');
conn_db();
$query="SELECT * FROM groups";
if ($_GET['latest']) {
$query .= " WHERE quand > 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'] . "\t" . $row['csdb'] . "\t" .
$row['zxdemo'] . "\t" . iconv('iso-8859-1', 'utf-8', $row['acronym']) . "\n";
}
?>