How can I make to link the echo's of "Ficheiro" with a script to download the "Ficheiro" filename?
Example echo's from "Ficheiro" will be something like 1509071717-de_dust2.dem
How can I download this file from this ftp?
Ftp: ftp://USER:PASSWORD@IPHOST:PORT/
Code:
<?php
require('config.php');
$iConnection = mysqli_connect($_HOST_,$_USER_,$_PASS_,$_MYDB_) or die("<link rel='stylesheet' type='text/css' href='css/style.css'><h4>Rank not found.</h4>");
?>
<html>
<body>
<table width="100%" border="0" cellpadding="1" cellspacing="1">
<tr>
<th>FICHEIRO</th>
</tr>
<?php
$sql = "SELECT * FROM HLTV1 ORDER BY Ficheiro DESC";
$iResult = mysqli_query($iConnection, $sql);
while($Row = mysqli_fetch_array($iResult))
echo "<td style='text-align: center;' width='5%'>" . $Row['Ficheiro'] . "</td>";
echo "</tr>";
mysqli_close($iConnection);
?>
</table>
</body>
</html>