Code: Alles auswählen
//
// Letzten Download Dateien
//
$sql = "SELECT file_name,file_desc,file_time FROM phpbb_pa_files ORDER BY file_time";
if (!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not query forums information', '', __LINE__, __FILE__, $sql);
}
$files_data = array();
while( $row = $db->sql_fetchrow($result) )
{
$files_data[] = $row;
}
for ($i = 0; $i < 10; $i++)
{
$template->assign_block_vars('files_data', array(
'U_NAME' => $files_data[$i][0],
'U_DESC' => $files_data[$i][1],
)
);
}
//
// ENDE Letzten Download Dateien
//