Yogesh Yogesh - 8 months ago 39
HTML Question

How to show link of file placed on server using href in php echo tag?

Trying to create table using php , i succeed to create table but i want to put link of file on ftp server in td tag , i try with href but it gives error please help me to correct my code.

echo "<a href = '../public_html/download/ ".echo $row["FileName"]"'> ".$row["FileName"] "</a>";


I noticed a couple of syntax errors - try this:

echo "<a href = '../public_html/download/".$row["FileName"]."'>".$row["FileName"]."</a>";