我有下面的代码:使一个HTML/PHP链接
$result = mysql_query("SELECT link, notes FROM links WHERE username='will';");
$html .= "<ul>";
while ($row = mysql_fetch_array($result)) { //loop
extract($row);
$html .= "<li>{$link} - {$notes}</li>";
}
我需要在那里说:{$link}
位,成为打开一个新的窗口中点击的链接。我将如何做到这一点?
当我把它周围的标签,你得到这个错误:
的错误是:解析错误:语法错误,意想不到的/data/www/vhosts/themacsplash.com/httpdocs/ClipBoy/will“{” .PHP在线18
线18 $html .= "<li>{$link} - {$notes}</li>";
是你写的吗,还是你第一次看到它? – 2011-03-12 16:02:10
我写了代码.. – 2011-03-12 16:03:08
你有基本的HTML理解吗?为什么你不能在这个页面上添加适当的标签到现有的HTML? – 2011-03-12 16:04:07