Make A HTML/PHP Link
Posted
by
Will Evans
on Stack Overflow
See other posts from Stack Overflow
or by Will Evans
Published on 2011-03-12T15:57:30Z
Indexed on
2011/03/12
16:10 UTC
Read the original article
Hit count: 332
I have the code below:
$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>";
}
I need the bit where it says {$link}
to become a clickable link which opens a new window. How would I do this?
When I put tags around it you get this error:
The error is: Parse error: syntax error, unexpected '{' in /data/www/vhosts/themacsplash.com/httpdocs/ClipBoy/will.php on line 18
Line 18 is $html .= "
© Stack Overflow or respective owner