Yogesh Yogesh - 1 year ago 101
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>";

Answer Source

I noticed a couple of syntax errors - try this:

echo "<a href = '../public_html/download/".$row["FileName"]."'>".$row["FileName"]."</a>";
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download