joemamahunt Posted September 11, 2007 Share Posted September 11, 2007 Sorry for the very poor subject, no clue how I would be able to say this in few words. I would like to take this code: $row['body'] .= '... '; And put in the following after the three dots: <a href="', $news['href'], '">[more]</a> So, something like this: $row['body'] .= '... <a href="', $news['href'], '">[more]</a>'; I'd need to insert \'s for the single quotes, but that's not the problem. Problem is, the link will be something like this: http://', $news[href], ' What's the best way to make it work? Thanks. Quote Link to comment Share on other sites More sharing options...
hackerkts Posted September 11, 2007 Share Posted September 11, 2007 It's '. and .' not , Quote Link to comment Share on other sites More sharing options...
Aeglos Posted September 11, 2007 Share Posted September 11, 2007 <?php $row['body'] .= '... <a href="'.$news['href'].'">[more]</a>'; ?> Unless the commas were intentional (which makes no sense ). Quote Link to comment Share on other sites More sharing options...
joemamahunt Posted September 11, 2007 Author Share Posted September 11, 2007 Ahhh.. Silly me. Thank you. 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.