在php中显示链接

ABI*_*ABI 2 php mysql hyperlink

我试图将这样存储在mysql中的URL显示为php表中的链接

echo "<td><a href=".$row['resume'].">Resume</a></td>";
Run Code Online (Sandbox Code Playgroud)

其中$ row ['resume']使用mysql_fetch_array检索正确的数据

但是文件链接之间的空格会自动截断

例如我的文件名是"这是一个resume.doc"我只在链接中得到"this"

救命.

And*_*ewR 6

您需要在href属性周围加上引号.

echo "<td><a href=\"".$row['resume']."\">Resume</a></td>";
Run Code Online (Sandbox Code Playgroud)