echoninja Posted April 13, 2006 Share Posted April 13, 2006 Ok at the moment I have a list of entries for articles, I want a quick preview when the person hovers over the link, this is the code I have at the moment[code]$str=$a["body"]; $newlength="60"; $a_body=substr($str, 0, $newlength); echo " ● <acronym title=". $a_body ."><a href=showarticle.php?id=". $id .">". $a_title ."</a></acronym> [posted ". $a_date ."]";[/code]It works to an extent, it only displays the [b]first word[/b], what am I forgetting? Quote Link to comment Share on other sites More sharing options...
arifsor Posted April 13, 2006 Share Posted April 13, 2006 forgot to put the \ before and after "try this[code] echo " ● <acronym title=\"". $a_body ."\"><a href=showarticle.php?id=". $id .">". $a_title ."</a></acronym> [posted ". $a_date ."]";?>[/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.